As soon as I added the navigation bar item to the navigation bar, I lost the ability to use the default function to return. I would like to be able to use the "swipe along the edge" to go back.
I added the Edge Pan edge recognition flag and connected it to @IBAction, but the deviation action takes place completely as soon as the panorama gesture is recognized.
Instead of slowly following my thumb (as seen from other applications), the current view moves with a predefined animation.
How do I make animations after my thumb using the Edge Pan gesture recognizer?
@IBAction func edgeSwipe(sender: AnyObject) { navigationController?.popViewControllerAnimated(true) }

cocoa-touch swift uigesturerecognizer uinavigationcontroller
Andrej
source share