MDCSwipeToChoose icon indicating copy to clipboard operation
MDCSwipeToChoose copied to clipboard

Undo

Open jrmgx opened this issue 9 years ago • 7 comments

It could be a nice feature to be able to undo the last swipe?

jrmgx avatar Mar 12 '15 09:03 jrmgx

Out of curiosity, how would you allow the user to undo the last swipe? Would it be a different gesture, or a button titled "Undo"?

ZaneH avatar Mar 14 '15 00:03 ZaneH

To be consistent it should be a gesture but I can't see one available without conflicting with iOS or the one already in place for the actual SwipeToChoose component, so I guess a button is a good start. It is what we did but not as part of that lib, only in the logic of our app.

see : 02_feed_01

jrmgx avatar Mar 14 '15 07:03 jrmgx

@jrmgx feel free to contribute. Email me if you like to code this feature over the weekend?

vikmeup avatar Mar 27 '15 06:03 vikmeup

Unfortunately I don't have the skill to contribute, as I tried to explain the only thing I did is to implement the undo logic in term of data source, so if the user tap undo it put back the previous item into the data and refresh. There is no animation, nothing fancy. That's why I open this issue, because I thought it could be a native feature. But as I remember this lib doesn't manage a data source so it could be a problem too.

jrmgx avatar Mar 27 '15 08:03 jrmgx

I'm kindly to contribute, but how to start?

datomnurdin avatar Apr 08 '15 02:04 datomnurdin

@datomnurdin Please take a look at https://help.github.com/articles/using-pull-requests/

vikmeup avatar Apr 09 '15 06:04 vikmeup

I had no idea to start.

datomnurdin avatar Jun 18 '15 03:06 datomnurdin