Swift memungkinkan pengenalan gerakan atas orang lain
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