Hero: How to enable default iOS back swipe gesture?

Created on 26 Jul 2017  路  6Comments  路  Source: HeroTransitions/Hero

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!

reopen if needed

Most helpful comment

Thanks ikzhao :-)

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

All 6 comments

+1

Any news on this topic?

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.

Thanks ikzhao :-)

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

343 works afaik

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patchthecode picture patchthecode  路  4Comments

czater picture czater  路  3Comments

aloisdeniel picture aloisdeniel  路  5Comments

lkzhao picture lkzhao  路  5Comments

LucaGalaxy picture LucaGalaxy  路  4Comments