alexstyl / compose-tinder-card

A Jetpack Compose Modifier that enables Tinder-like card gestures.
Apache License 2.0
171 stars 17 forks source link

Enable to reset card swipe #6

Closed adam-nagya closed 1 year ago

adam-nagya commented 1 year ago

With a public reset function, we could reset the card swipe, for example on an api error.

alexstyl commented 1 year ago

Hi there. In order to consider this I would need to see a working example of how to use this as it needs to be documented.

Can you create a working demo of this?

alexstyl commented 1 year ago

Closing due to inactivity

4strodev commented 6 months ago

Literally, this allows you to reset the state offset of your animated item. It can be useful when you have a reactive UI that changes the content of a card when you swipe. And need to show the card at the starting position with the new content.

Even he doesn't create anything new. It only made public a function that you made internal for some reason