-
Notifications
You must be signed in to change notification settings - Fork 101
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
[Feature] Swipe without removing the item from the list #69
Comments
Hi @james-ff, I had the same error. It was a stupid mistake:
I just removed didSet and it worked. |
Do you want the card to swipe away without having to update the datasource to reflect this? Or just block the card from swiping away? To me personally it seems weird to want your datasource out of sync with the actual displayed data, I think this is why Apple does this too? I'm just forwarding the |
Blocking the card from swiping away matches my intent here.
Hope that clarifies it. In the meantime I add the item back in if the confirmation is cancelled. |
Hi @james-ff ,
to:
Hope this helps. |
New Issue Checklist
Is your feature request related to a problem? Please describe.
If I do not remove the swiped item from the datasource an error occurs
Describe the solution you'd like
I would like to configure the cardSwiper view to not remove an item when it is swiped (instead trigger an action), and later on when that action finishes I can remove the item programmatically.
Describe alternatives you've considered
I've considered re-adding the removed item immediately, but It feels like this would be a hack solution, which might cause strange animations
Additional context
none
The text was updated successfully, but these errors were encountered: