title: Pop view controller using Screen edge pan gesture recogniser not following the thumb
body: <p>As soon as I've added custom bar navigation bar button item I've lost the ability to use the default function to go back. I'd like to have the ability to use "swipe from edge" to go back.</p>
  
  <p>I've added the Edge Pan Gesture Recogniser and connected it to @IBAction, but the dismissing action happens completely as soon as the pan gesture is recognised.</p>
  
  <p>Instead of slowly following my thumb (as seen in other apps), the current view moves out with predefined animation.</p>
  
  <p>How to make the animation following my thumb using Edge Pan Gesture Recogniser?</p>
  
  <pre><code>@IBAction func edgeSwipe(sender: AnyObject) {
      navigationController?.popViewControllerAnimated(true)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZP1NH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZP1NH.png" alt="enter image description here"></a></p>