title: How to draw a complete circle in iOS with UIBezierPathwithArcCenter?
body: <p>I want the startAngle to be at 90 degrees which is π / 2, so I figured if I made the endAngle 90 degrees then it would just make a complete circle, but instead nothing is drawn. </p>
  
  <p>When I put the start &amp; end angle at different degrees as shown below, the path is drawn, but it's not a full circle.</p>
  
  <p>Heres the code I'm using so far, but I can't seem to figure out what the endAngle should be if the startAngle is 90 degrees in order to draw a complete circle.</p>
  
  <p>Can anyone help?</p>
  
  <pre><code>    override func drawRect(rect: CGRect) {
      let center = CGPoint(x: bounds.width / 2, y: bounds.height / 2)
      let radius: CGFloat = max(bounds.width, bounds.height)
      let startAngle: CGFloat = 3 * π / 4
      let endAngle: CGFloat = π / 4
  
      var path = UIBezierPath(arcCenter: center,
                                 radius: bounds.width / 2 - arcWidth / 2,
                             startAngle: startAngle,
                               endAngle: endAngle,
                              clockwise: true)
  
  
      path.lineWidth = arcWidth
      path.lineCapStyle = kCGLineCapRound
      counterColor.setStroke()
      path.stroke()
  }
  </code></pre>