title: iOS Storyboard Constraints/Traits for portrait and landscape view
body: <p>my iOS project consists at the moment of one single UIView or UIViewController. The controller class is called MainViewController.swift.
  The view of the view controller has a subview which I've placed at the bottom:
  <a href="https://i.stack.imgur.com/wvev0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wvev0.png" alt="enter image description here"></a></p>
  
  <p>I've set the auto layout option to keep the distance of the subview for every device size the same:
  <a href="https://i.stack.imgur.com/YhR7P.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YhR7P.png" alt="enter image description here"></a></p>
  
  <p>Now I want to keep the sub view always on the short side of the parent view, which means that in landscape mode the sub view show be on the right side of the parent view:
  <a href="https://i.stack.imgur.com/SQuET.png" rel="noreferrer"><img src="https://i.stack.imgur.com/SQuET.png" alt="enter image description here"></a></p>
  
  <p>I've checked some tutorials and other posts in the meanwhile:</p>
  
  <ul>
  <li><a href="https://www.raywenderlich.com/160527/auto-layout-tutorial-ios-11-getting-started" rel="noreferrer" title="Ray Wenderlich Tutorial">Ray Wenderlich Tutorial</a></li>
  <li><a href="https://stackoverflow.com/questions/42318186/xcode-how-to-change-layout-of-views-between-landscape-and-portrait-mode">Stackoverflow Post</a></li>
  </ul>
  
  <p>At this point it is not clear to my how to realize such a behavior best?
  Possibilites I've found to solve the issue:</p>
  
  <ul>
  <li>Vary for traits...but how?</li>
  <li>Constraints?</li>
  <li>Programmatically - I think this would be the fastest solution, but I really want to use storyboards and learn the correct usage.</li>
  </ul>