Been looking around on here for a while but can\'t seem to find a working solution.
I\'m trying to disable the swipe to go back to previous view gesture, in Swift.>
This is something you missed if it doesn't work after you tried all.
navigationController?.interactivePopGestureRecognizer?.isEnabled = false
to your viewWillAppear(animated:) method. UINavigationControllerDelegate
, UIGestureRecognizerDelegate
protocols. if so, just remove it.