title: How to get center point (CGPoint) of a UIView that has been set using autolayout
body: <p>So I haven't seen any other SO question about this. Basically, I have set a UIView with autolayout, programmatically. </p>
  
  <p>The issue occurs when I try to create a UIBezierPath:</p>
  
  <pre><code>let circularPath = UIBezierPath(arcCenter: myView.center, radius: (91*(1.2))/2 - (8/2), startAngle: -CGFloat.pi / 2, endAngle: 2 * CGFloat.pi, clockwise: true)
  </code></pre>
  
  <p>The issue is that the myView.center prints out: <code>0.0, 0.0</code> since I did not set a CGRect .frame for the myView, and instead used autolayout (which is below):</p>
  
  <pre><code>NSLayoutConstraint.activate([
      myView.heightAnchor.constraint(equalToConstant: 91),
      myView.widthAnchor.constraint(equalToConstant: 91),
      myView.centerXAnchor.constraint(equalToSystemSpacingAfter: myButton.centerXAnchor, multiplier: 1),
      myView.centerYAnchor.constraint(equalToSystemSpacingBelow: myButton.centerYAnchor, multiplier: 1),
  ])
  </code></pre>
  
  <p>and also perhaps I should note that myView is added as a subview of myButton (though this shouldn't really matter..)</p>
  
  <p><strong>So how do I make this work? how could I get the .center (a type CGPoint) to use in the UIBezierPath?</strong> THANKS!</p>