title: Swipe gesture in Swift 3
body: <p>Im trying to get a UISwipeGestureRecognizer to work in Swift 3, the default swipe right is working correctly though not up down or left.</p>
  
  <p>I have tried it by control dragging an Action </p>
  
  <pre><code>@IBAction func hole(_ recognizer: UISwipeGestureRecognizer) {
      if (recognizer.direction == UISwipeGestureRecognizerDirection.left)
      {
          print("left")
      }else if recognizer.direction == .right {
          print("right")
      }else {
          print("other")
      }
  }
  </code></pre>
  
  <p>And, in ViewDidLoad </p>
  
  <pre><code>//gesture recognisers
  let swipeRight = UISwipeGestureRecognizer(target: self, action: "holeSwiped:")
  swipeRight.direction = UISwipeGestureRecognizerDirection.right
  self.view.addGestureRecognizer(swipeRight)
  
  let swipeLeft = UISwipeGestureRecognizer(target: self, action: "holeSwiped:")
  swipeLeft.direction = UISwipeGestureRecognizerDirection.left
  self.view.addGestureRecognizer(swipeLeft)
  </code></pre>
  
  <p>to my method </p>
  
  <pre><code>func holeSwiped(gesture: UISwipeGestureRecognizer)
  {
      if let swipeGesture = gesture as? UISwipeGestureRecognizer{
          switch swipeGesture.direction {
          case UISwipeGestureRecognizerDirection.right:
              print("right swipe")
          case UISwipeGestureRecognizerDirection.left:
              print("left swipe")
          default:
              print("other swipe")
          }
      }
  }
  </code></pre>
  
  <p>Now, none of the swipes are working except the default right. Any ideas?</p>