title: How to add a UIButton to Swift Playground?
body: <p>So I opened up playground, I just want to add a simple UIButton (or a simple UIView) for testing purposes. I can't get it to display though. This is what I have so far:</p>
  
  <pre><code>import UIKit
  
  var uiButton    = UIButton.buttonWithType(UIButtonType.System) as UIButton
  uiButton.frame  = CGRectMake(0, 0, 100, 100)
  uiButton.setTitle("Test", forState: UIControlState.Normal);
  //self.view.addSubview(uiButton) &lt;-- doesn't work
  </code></pre>
  
  <p>Do you guys know what I'm doing wrong? Thanks</p>