title: Add gestures and animation in Swift
body: <p>I am making an application which is inspired from iOS8 voice messages and trying to add 'gestures and animations(like slide left and cancel the record,slide rightto Upload the voice record.)' but it doesn't work at all.Here is the code snippet below.</p>
  
  <pre><code>    // Swipe left and cancel
      let swipeLeftGesture = UISwipeGestureRecognizer(target: self, action: "swipeLeftCancel")
      swipeLeftGesture.direction = UISwipeGestureRecognizerDirection.Left
      self.view.addGestureRecognizer(swipeLeftGesture)
  
      // Swipe right and upload
      let swipeRightGesture = UISwipeGestureRecognizer(target: self, action: "swipeRightUpload")
      swipeRightGesture.direction = UISwipeGestureRecognizerDirection.Right
      self.view.addGestureRecognizer(swipeRightGesture)
      session.requestRecordPermission({(granted: Bool)-&gt; Void in
          if granted {
              self.setupRecorder()
          } else {
              println("Permission to record not granted")
          }
      })
  
     func swipeLeftCancel(sender: UISwipeGestureRecognizer) {
      // slide left and cancel
     }
  
     func swipeRightUpload(sender: UISwipeGestureRecognizer) {
      // slide right and upload
      )
  </code></pre>
  
  <p>Whole code(before adding UISwipeGestureRecognizer) is in here ー> <a href="https://github.com/chansuke/GoForIt" rel="nofollow">https://github.com/chansuke/GoForIt</a></p>
  
  <p>Anyone give some advice?</p>