MDCSwipeToChoose
MDCSwipeToChoose copied to clipboard
Undo
It could be a nice feature to be able to undo the last swipe?
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"?
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 :
@jrmgx feel free to contribute. Email me if you like to code this feature over the weekend?
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.
I'm kindly to contribute, but how to start?
@datomnurdin Please take a look at https://help.github.com/articles/using-pull-requests/
I had no idea to start.