Fix Horizonal Sliding Issues by only recogizing simultaneous gestures if the other gesture its the pan gesture (#32)

This commit is contained in:
Tosin Afolabi 2019-06-08 13:52:59 -07:00 committed by GitHub
parent b0fb9e7eed
commit 0234d82979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -826,7 +826,7 @@ extension PanModalPresentationController: UIGestureRecognizerDelegate {
is a pan gesture recognizer
*/
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return otherGestureRecognizer.isKind(of: UIPanGestureRecognizer.self)
return otherGestureRecognizer == panGestureRecognizer
}
}