-
Notifications
You must be signed in to change notification settings - Fork 798
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
Conflict with side menu #358
Comments
Hey. |
Yes I am using exactly this snippet I posted here. Working fine so far. |
Thanks! I’ll try it out 🙃 Sent with GitHawk |
@igorkulman I don’t know if this happens to you: when I am right-to-left swipping the options appear, though if I slowly left to right slide to close the cell options the menu on the left hand side starts to open. Sent with GitHawk |
I would guess this is related to the gesture implementation in your side menu. I do not have a problem like this with https://github.com/evnaz/ENSwiftSideMenu |
@igorkulman yeah, it’s probably some “bug” on my implementation! Sent with GitHawk |
Thanks, for this reason I removed SwipeCellKit and use native swipe. |
I have done the same! I have managed to customize the native swipe as I wanted, though SwipeCellKit is pretty great |
That would be ideal, but sadly the native swipe only show both icon and text when the cell has a certain height, not always as SwipeCellKit. |
I'll use SwipeCellKit again |
Prevent conflict with side menu, using the solution described in the comment thread
I am using
SwipeCellKit
in aUITableViewController
together with a side menu that is activated by a swipe from left to right. MySwipeTableViewCell
only defines right items so I would expect swiping from right to left to show theSwipeCellKit
actions and swipe from left to right to open the side menu.The problem is that
SwipeCellKit
takes precedents over the side menu and handles the swipe gesture for both left to right and right to left without checking if swipe actions are defined for that direction.I found this in
SwipeController
(https://github.com/SwipeCellKit/SwipeCellKit/blob/develop/Source/SwipeController.swift#L365):I think the
return abs(translation.y) <= abs(translation.x)
should also check if there are actions defined for the currently handled direction.Maybe something like this
The text was updated successfully, but these errors were encountered: