title: Allowing a subview's radius to be larger than its superview's?
body: <p>I've got a rounded button that I'm adding a circular progress ring to using code from here:
  <a href="http://notebookheavy.com/2014/07/30/ios-7-style-progress-meter-in-swift/" rel="nofollow noreferrer">http://notebookheavy.com/2014/07/30/ios-7-style-progress-meter-in-swift/</a></p>
  
  <pre><code>var progressCircle = CAShapeLayer();
  let centerPoint = CGPoint (x: circle.bounds.width / 2, y: circle.bounds.width / 2);
  let circleRadius : CGFloat = circle.bounds.width / 2  // this is what I need to fix * 1.25      
  var circlePath = UIBezierPath(arcCenter: centerPoint, radius: circleRadius, startAngle: CGFloat(-0.5 * M_PI), endAngle: CGFloat(1.5 * M_PI), clockwise: true    );
  circle.layer.addSublayer(progressCircle);
  self.view.addSubview(circle)
  </code></pre>
  
  <p>The above code draws a circle around my  button, but I'm wanting instead of the circle to hug the inside of the circumference, I want it to hug the outside. I figured I could just make the radius larger, but once I go beyond width / 2, the subview is no longer visible in the view at all. </p>
  
  <p>How would I allow the radius of the progressCircle to be larger than the button's and appear to be wrapping around the button instead of creating a circle inside of the circumference?</p>