Skip to content

UINavigationController: interactiveContentPopGestureRecognizer property ​

The interactiveContentPopGestureRecognizer property is another back gesture added in iOS 26: swiping right anywhere in the view controller's content area also goes back to the previous view controller, without starting at the left edge.

Value ​

A UIGestureRecognizer, or null.

To turn swipe back off completely, set isEnabled to false on both recognizers.

Examples ​

js
const nav = new UINavigationController(new UIViewController());
void nav.view;
for (const recognizer of [nav.interactivePopGestureRecognizer, nav.interactiveContentPopGestureRecognizer]) {
  if (recognizer !== null) {
    recognizer.isEnabled = false;
  }
}

Effect: Neither swiping from the edge nor swiping in the content area goes back to the previous view controller anymore. Not verified in the simulator.

Corresponding iOS API ​

UINavigationController.interactiveContentPopGestureRecognizer (iOS 26 and later).

See also ​