title: How does one center a UILabel object programmatically in Swift?
body: <p>How would I go about centering a UILabel programmatically (my whole app is programmatic eliminating using IB auto layout) in Swift?</p>
  
  <p>I've seen this which seems to answer it for Objective-C:</p>
  
  <p><a href="https://stackoverflow.com/questions/6753794/how-to-center-a-uilabel-on-uiview">How to center a UILabel on UIView</a></p>
  
  <p>setCenter doesn't seem to function as such in Swift however.</p>