Do you need to implement swipe to dismiss with Compose? ⬅️ ➡️ There is a ready component to use - SwipeToDismiss, which can be implemented in just a few steps! The first step to create a DismissState using rememberDismissState and pass logic for dissmised items. The second step is to customize background/icons/etc. under the dismissed component based on the swipe direction (accessible from the same state) ⬇️ Check out the working solution below #jetpack #jetpackcompose #compose #android #kotlin
Thanks, was thinking 💭 about it recently
Build Android apps like the top 1%. Save $25M and 7 years and build right the first time.
10moThis was the HARDEST thing to do in XML. I'm so glad to see Compose has taken the pain out of it.