title: Swift: Draw a Circle around a Label
body: <p>I'm trying to draw a circle around a label at runtime in a TableViewCell's cell. </p>
  
  <p>I can figure out how to get it roughly around the label, but I'm having some trouble centring it exactly around the label.</p>
  
  <p>The circle seems to be drawing just to the right and towards the middle of the label.</p>
  
  <p>Here's my code so far, I'm sure this will be easy for someone to bang out.</p>
  
  <pre><code>func drawCircle() {
      let x = countLabel.layer.position.x - (countLabel.frame.width)
      let y = countLabel.layer.position.y - (countLabel.frame.height / 2)
      let circlePath = UIBezierPath(roundedRect: CGRectMake(x, y, countLabel.frame.height, countLabel.frame.height), cornerRadius: countLabel.frame.height / 2).CGPath
  
      let circleShape = CAShapeLayer()
      circleShape.path = circlePath
      circleShape.lineWidth = 3
      circleShape.strokeColor = UIColor.whiteColor().CGColor
      circleShape.fillColor = UIColor.clearColor().CGColor
  
      self.layer.addSublayer(circleShape)
  }
  </code></pre>