title: Swift - How to remove swipe gesture from scene when moving to another one?
body: <p>So my game uses swipe gestures, in my didMoveToView() function I have these gestures initialized:</p>
  
  <pre><code>            let swipeRight = UISwipeGestureRecognizer()
              swipeRight.direction = UISwipeGestureRecognizerDirection.Right
              self.view?.addGestureRecognizer(swipeRight)
  
              let swipeLeft = UISwipeGestureRecognizer()
              swipeLeft.direction = UISwipeGestureRecognizerDirection.Left
              self.view?.addGestureRecognizer(swipeLeft)
  
              let swipeUp = UISwipeGestureRecognizer()
              swipeUp.direction = UISwipeGestureRecognizerDirection.Up
              self.view?.addGestureRecognizer(swipeUp)
  
              let swipeDown = UISwipeGestureRecognizer()
              swipeDown.direction = UISwipeGestureRecognizerDirection.Down
              self.view?.addGestureRecognizer(swipeDown)
  </code></pre>
  
  <p>Problem is when I move to my GameOver scene, and I swipe, it crashes my app. I noticed someone had posted something similar and got this as an answer</p>
  
  <pre><code>override func willMoveFromView(view: SKView) {
     for recognizer in self.view.gestureRecognizers! {
         self.view.removeGestureRecognizer(recognizer)
     }
  }
  </code></pre>
  
  <p>Still not quite sure how to implement this and/or remove the gestures from the scene before switching to game over. Can anyone help?</p>