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

Dismiss/discard a card without invoking swipe action #82

Open
JoeFerrucci opened this issue Dec 22, 2016 · 0 comments
Open

Dismiss/discard a card without invoking swipe action #82

JoeFerrucci opened this issue Dec 22, 2016 · 0 comments

Comments

@JoeFerrucci
Copy link

Need to just discard the top card without actually triggering/invoking a swiping action.

Don't wan't to swipe any direction, just need to programmatically dismiss/discard the top card.

Example: if there are three (3) cards, typically I would swipe in a direction and the respective action would be invoked. There's an action for each direction (Up, Down, Left, Right); so we typically have 4 actions.

However, I need a fifth (5th) action, which is just get rid of the top card. I would get rid of the top card, which would mean there are only 2 cards, so I'd need a new one to be pushed on the bottom of the cards.

Diagram of card view stack before and after this "discard-action" that I need:
[1] [2] [3] -> "DISCARD-ACTION" -> [2] [3] [4]

Hopefully I'm making sense.

Is there something comparable to what I need, i.e., ZLSwipeableView.discardTopView()

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