Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable default iOS back swipe gesture? #243

Closed
Banck opened this issue Jul 26, 2017 · 6 comments
Closed

How to enable default iOS back swipe gesture? #243

Banck opened this issue Jul 26, 2017 · 6 comments

Comments

@Banck
Copy link

Banck commented Jul 26, 2017

Hello!
If you use UINavigationController you have back swipe gesture to back to previous controller. But when Hero is enabled I don't have this behaviour. How can I enable default iOS back swipe gesture if Hero is enabled?
Thank you!

@beneiltis
Copy link

+1

@beneiltis
Copy link

Any news on this topic?

@lkzhao
Copy link
Collaborator

lkzhao commented Aug 3, 2017

UIKit disables the default back gesture if you use any custom transitions. You can unset the navigationControllerDelegate to get back the back gesture. or implement your own back gesture through interactive transition.

@beneiltis
Copy link

Thanks ikzhao :-)

Inside viewDidLoad() of the destination-ViewController following line does the trick:
navigationController?.interactivePopGestureRecognizer?.delegate = nil

@kuyazee
Copy link
Member

kuyazee commented May 9, 2019

#343 works afaik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants