title: iOS Swift Popup View Controller
body: <p>I need to have a ViewController slide up, be centered, and overlay the current ViewController.  I thought the following code would work but it does not:</p>
  
  <pre><code>let view = storyboard?.instantiateViewControllerWithIdentifier("castSpell") as! CastSpellViewController
  view.modalPresentationStyle = .OverCurrentContext
  presentViewController(view, animated: true, completion: nil)
  </code></pre>
  
  <p>The new ViewController is shown but just as a full screen view.  I have it's size set to 400x300 in the storyboard.  I know I can do the same thing by having a view within a view and then showing the overlay view.  Is that the route I need to go?</p>