Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evayuhz opened this issue Dec 19, 2019 · 0 comments
Open

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

evayuhz opened this issue Dec 19, 2019 · 0 comments

Comments

@evayuhz
Copy link

evayuhz commented Dec 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant