More forgiving UIScreenEdgePanGestureRecognizer implementation.
When being used on a UIScrollView
or its subclasses, UIScreenEdgePanGestureRecognizer
is not forgiving enough and too hard to activate.
We can make UIScreenEdgePanGestureRecognizer
more generous by doing this.
- Set delegate of the
UIScreenEdgePanGestureRecognizer
, so it can be simultaneously recognized with scrollView'sUIPanGestureRecognizer
. - Require
UIScreenEdgePanGestureRecognizer
failure for scrollView'sUIPanGestureRecognizer
recognition.
e.g.[scrollView.panGestureRecognizer requireGestureRecognizerToFail:edgeGR];