title: How to switch view controllers in swift?
body: <p>I'm trying to switch from one UIViewController to another using code. Right now I have, </p>
  
  <pre><code>self.presentViewController(ResultViewController(), animated: true, completion: nil)
  </code></pre>
  
  <p>All this is doing is taking me to a black screen instead of the ResultViewController. Any suggestions? </p>