---
title: interactivePopGestureRecognizer
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationcontroller/interactivepopgesturerecognizer
---

# interactivePopGestureRecognizer

The gesture recognizer responsible for popping the top view controller off the navigation stack when a person swipes from the leading screen edge.

## Declaration

```swift
var interactivePopGestureRecognizer: UIGestureRecognizer? { get }
```

## Discussion

Discussion The navigation controller installs this gesture recognizer on its view and uses it to pop the topmost view controller off the navigation stack when a person swipes horizontally from the leading edge of the screen. Use this property to retrieve the gesture recognizer and tie it to the behavior of other gesture recognizers in your user interface.

## See Also

### Related Documentation

- [gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)](uikit/uigesturerecognizerdelegate/gesturerecognizer(_:shouldrecognizesimultaneouslywith:).md)

### Pushing and popping stack items

- [pushViewController(_:animated:)](uikit/uinavigationcontroller/pushviewcontroller(_:animated:).md)
- [popViewController(animated:)](uikit/uinavigationcontroller/popviewcontroller(animated:).md)
- [popToRootViewController(animated:)](uikit/uinavigationcontroller/poptorootviewcontroller(animated:).md)
- [popToViewController(_:animated:)](uikit/uinavigationcontroller/poptoviewcontroller(_:animated:).md)
- [interactiveContentPopGestureRecognizer](uikit/uinavigationcontroller/interactivecontentpopgesturerecognizer.md)
