title: Swipe gesture between view controllers
body: <p>I am trying to create a swipe on background. I have three different color of backgrounds. I have made a button and when I click my button my background changes to next scene. 
  I want to change this and I want to swipe my thumb left or right to change the background and not to have to click on the button. How would I achieve that.</p>
  
  <p>here are some more details</p>
  
  <p>my view controller is </p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view, typically from a nib.
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
  
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/6RMub.png" alt="enter image description here"></p>