title: Orientation of screen?
body: <p>How do I make sure that the only orientations allowed are Portrait or Upside down portrait?</p>
  
  <p>I made the change in the project settings, but I'm having trouble making the change in my GameViewController.</p>
  
  <p>I need to make the change in this function:</p>
  
  <pre><code>override func supportedInterfaceOrientations() -&gt; UIInterfaceOrientationMask {
      if UIDevice.currentDevice().userInterfaceIdiom == .Phone {
          return .AllButUpsideDown
      } else {
          return .All
      }
  }
  </code></pre>
  
  <p>However, the "UIInterfaceOrientationMask" structure doesn't have an option that only allows portrait and upside down portrait.</p>