I'd like to detect swipe on the entire screen, however, the screen contains UIButton
s, and if the user taps one of these buttons, I want the Touch Up Inside event to be triggered.
I've create a UIView
on the top of my screen, and added a UIPanGestureRecognizer
on it to detect the swipe, but now I need to pass the gesture through that view when I detect that it's a tap rather than a swipe.
I know how to differentiate the gestures, but I've no idea on how to pass it to the view below.
Can anyone help on that? Thanks!