Swift Pozwól, aby rozpoznawał gesty nad innymi
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer,
shouldBeRequiredToFailBy otherGestureRecognizer: UIGestureRecognizer) -> Bool {
// Do not begin the pan until the swipe fails.
if gestureRecognizer == self.swipeGesture &&
otherGestureRecognizer == self.panGesture {
return true
}
return false
}
fabian