Rahul Saini
Rahul Saini

Reputation: 921

How to rewind last swipe like Tinder

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

Answers (2)

user3579086
user3579086

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

Andrew T.
Andrew T.

Reputation: 2108

Sounds like you want NSUndoManager. See the following links for examples.

Implementing NSUndoManager

http://nshipster.com/nsundomanager/

Upvotes: 1

Related Questions