title: UISwipeGestureRecognizer not working Swift 4 SpriteKit
body: <p>I'm trying to use a <code>UISwipeGestureRecognizer</code> so it executes a function when the user swipes right on the screen in an <code>SKScene</code>. This is my code</p>
  
  <p>I declare it, at the top of the scene.</p>
  
  <pre><code>let swiperight = UISwipeGestureRecognizer();
  </code></pre>
  
  <p>In the <code>viewDidLoad()</code> function</p>
  
  <pre><code>    swiperight.addTarget(self, action: #selector(GameScene.swipedRight));
      swiperight.direction = .right;
      self.view?.addGestureRecognizer(swiperight);
  </code></pre>
  
  <p>and then the function to be executed</p>
  
  <pre><code>@objc func swipedRight() {
  
      print("Object has been swiped right")
  
  }
  </code></pre>
  
  <p>However, when I run my app and swipe right on the scene, nothing happens, there is no console output whatsoever.</p>
  
  <p>I'm using swift 4, SpriteKit and Xcode 9.2. I'm running the app on my iPhone 6s running the latest non-beta IOS.</p>