title: How to use CoreText to replace UILabel in Swift?
body: <p>Currently I am using UILabel to put texts on the screen:</p>
  
  <pre><code>var label = UILabel()
  view.addSubView(label)
  label.backgroundColor = UIColor.whiteColor()
  label.numberOfLines = 2
  label.font = UIFont.systemFontOfSize(20, weight: UIFontWeightMedium)
  label.frame = CGRectMake(0, 0, 100, 50)
  label.text = "Hi, this is some text..."
  </code></pre>
  
  <p>How to use CoreText to replace the above in Swift?</p>