MortimerGoro / MGSwipeTableCell

An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions.
MIT License
6.97k stars 1.08k forks source link

Gesture conflicts with 2-finger pan multi selection gesture #346

Open evayuhz opened 4 years ago

evayuhz commented 4 years ago

Apple supported a new gesture to multi select cells at once in iOS13: https://developer.apple.com/documentation/uikit/uitableviewdelegate/selecting_multiple_items_with_a_two-finger_pan_gesture

But if a user pan left/right with two-finger, cell will swipe to left/right and also enter edit mode, so the UI seems a little wired.

image

Could you please fix this bug? One way to fix it is in 'MGSwipeTableCell.m' file, add func:

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer

and return yes when gestureRecognizer is _panRecognizer and otherGestureRecognizer is 2-finger pan gesture.

Thanks