title: iOS: How do I swipe between views using Swift
body: <p>I'm new to Swift and iOS development, and am looking how to set up a main view where I want swipe right for a second view or left for a third view.
  When I am in the second or the third view it should be possible to swipe back to the main view.</p>
  
  <p>I found several ideas how to realize swipe view like this one:
  <a href="https://medium.com/swift-programming/ios-swipe-view-with-swift-44fa83a2e078">https://medium.com/swift-programming/ios-swipe-view-with-swift-44fa83a2e078</a></p>
  
  <p>But the "problem" is, that I want to start on a main view with the possibility to swipe in both directions. (so with the solution above to start on the second view)</p>
  
  <p>Does anyone know how to do this?</p>