I have a UIViewController
that gets pushed onto a navigation stack. I'd like to extend the standard iOS7 interactive pan gesture to pop this view controller beyond the default UIRectEdgeLeft
boundaries, so that users can initiate an interactive back action by panning from anywhere on the view.
I've tried rolling my own interactive view controller transition, but it's a lot of hassle to fully replicate the nice parallax handling of the default interactivePopGestureRecognizer
. For example, the fromViewController
hides the navigation bar, while the toViewController
shows it—something that is not easy to handle in a custom interactive transition, but is seamless in the default action.
As a result, I want to extend the default action to a larger area of pan gesture, but the API doesn't seem to support simply replacing the gesture.
Any creative suggestions?
Check out my library SloppySwiper, which achieves this by using UIPanGestureRecognizer
and by recreating the default animation. You can also see my ideas in https://github.com/fastred/SloppySwiper/issues/1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With