Skip to content

Instantly share code, notes, and snippets.

@shaps80
Last active September 23, 2020 08:35
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shaps80/6671711 to your computer and use it in GitHub Desktop.
Save shaps80/6671711 to your computer and use it in GitHub Desktop.
Custom UINavigationController back button item, without losing iOS 7 swipe back gesture.
navigationController
.interactivePopGestureRecognizer
.delegate = (id<UIGestureRecognizerDelegate>)navigationController;
navigationController?
.interactivePopGestureRecognizer?
.delegate = navigationController as? UIGestureRecognizerDelegate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment