Reputation: 921
I'm working on an iOS app (using Objective-C).
I am using MDCSwipeToChoose API to swipe a view (like & dislike).
I want to add one more button in the App (rewind last swipe like tinder).
Upvotes: 5
Views: 1989
Reputation: 123
You can create separate manager that will handle current card number. On revert button action, you can remove previous card and animate appearance of the new one. You can look how we implement this manager here: https://github.com/Yalantis/Koloda
Upvotes: 1
Reputation: 2108
Sounds like you want NSUndoManager. See the following links for examples.
http://nshipster.com/nsundomanager/
Upvotes: 1