I currently have a single page swift application (for iOS) running on a custom view controller. Within that view controller, I've embedded another custom UIView to display some content / handle some user interaction.
I'm wondering if there is a way to intercept a UISwipe, which is registered in the custom view controller, and have swift ignore it if it occurs on the embedded view. I know that for taps, I could set my view controller as the delegate for the tap gesture recognizer and do something like the following:
// not exact syntax
func gestureRecognizer(touch){
if (touch.view == self.embeddedView || (touch.view.isDescendantOf(embeddedView))!){
return false
}
return true
}
However I can't find any functionality that does the same for swipes. Could someone point me in the right direction?