MGSwipeTableCell icon indicating copy to clipboard operation
MGSwipeTableCell copied to clipboard

Gesture conflicts with 2-finger pan multi selection gesture

Open evayuhz opened this issue 6 years ago • 0 comments

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

evayuhz avatar Dec 19 '19 09:12 evayuhz