How do we disable the new swipe left anywhere to navigate back? I already use that swipe motion for custom actions in my app.
In iOS 26, UINavigationController
has a new property called interactiveContentPopGestureRecognizer
and is described as this:
The interactive content pop gesture recognizes on the entire content area of the navigation controller in cases that are not covered by the interactive pop gesture recognizer and initiates an interactive pop. This property should only be used to set up failure requirements with it.
So I believe now the pop gesture properties are defined as so:
interactivePopGestureRecognizer
is the swipe from the edge gestureinteractiveContentPopGestureRecognizer
is the swipe anywhere in the main content gesture
So by disabling both gesture recognisers, you should be good to implement your custom swipe gestures.
navigationController?.interactivePopGestureRecognizer?.isEnabled = false
navigationController?.interactiveContentPopGestureRecognizer?.isEnabled = false