-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Suggestion: Swipe Back #6
Comments
Good idea - I've so far implemented this with a "back" button, but it'd be great to have it purely gesture based! I'm a bit curious tho how to make it feel intuitive from a skeuomorphic pop, when you're actually swiping the top card. I guess the bottom card could then be the one affected by the animation. I also guess it'd make sense to configure each direction? |
Exactly!
Yes, makes sense 👍 |
This is essential for flashcard type apps. Right means correct/yes, left means wrong/no. Usually going to the back of the stack is the default but may also be ejected w some logic (ideally in a callback that can intervene) for example when getting a card wrong repeatedly it's nice to stop showing it to the user for a while. |
Cool, it should be pretty easy to fix. Any ideas regarding how to best design the api are more than welcome 👍 |
@pedrommcarrasco @aehlke I don't know if this is still relevant to you, but I'd love to get it working. Do you have an example that I can look at for inspiration? |
I haven't picked up that work yet, won't get to this for some more months |
You might use https://github.com/dadalar/SwiftUI-CardStackView as reference (though it's unmaintained now so see /network for its updated forks) |
Thank you! |
It would be great if it was possible to configure the Deck to be bidirectional as in:
The text was updated successfully, but these errors were encountered: