fastred / SloppySwiper

UINavigationController delegate that allows swipe back gesture to be started from anywhere on the screen (not just from the edge).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alternative ways of achieving the same effect

fastred opened this issue · comments

The same functionality can be obtained in one of these (less safe) ways:

  1. swizzle UIScreenEdgePanGestureRecognizer to let it recognize pan gestures started not only from the edge (I haven't tested it yet)
  2. grab the target and action from interactivePopGestureRecognizer and use them with UIPanGestureRecognizer (it uses private APIs): https://gist.github.com/fastred/3ccd1740e1464dbf8675

I am also thinking about swizzle method, but I dont know the detail of interactivePopGestureRecognizer. Do u have any ideas?