Regarding Swipe-to-Reveal, I am using it as a way of saving an item. I would then like the item to bounce back into its original position. How could I do that? I'll put my code in the thread.
Pass in rememberRevealState() to your SwipeToReveal.
n
Nat Strangerweather
09/12/2023, 7:42 PM
Lovely, many thanks Yuri!
➕ 1
y
yschimke
09/12/2023, 7:53 PM
One general tip. There are a bunch of demos and samples in cs.android.com. show a lot of these types of cases. Just search for the component name.
👍 1
s
stevebower
09/13/2023, 10:38 AM
Note that whilst the gesture-handling for swipe-to-reveal is in the Foundation library, we've added SwipeToRevealChip and SwipeToRevealCard in the Material library that make it easier to follow UX guidance (these work with the respective Wear Compose Material Chip/Card components). See 1.3.0-alpha03 release notes.