Fedor Erofeev’s Post

View profile for Fedor Erofeev, graphic

Senior Android Developer at Seven Peaks Software

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

  • No alternative text description for this image
Oliver Spryn

Build Android apps like the top 1%. Save $25M and 7 years and build right the first time.

10mo

This was the HARDEST thing to do in XML. I'm so glad to see Compose has taken the pain out of it.

Tanany A.

Mobile App Problem Solver | Turning Ideas into Engaging Apps | Care about Innovation | Love building new things, thrive in ambiguity and even failure.

10mo

Thanks, was thinking 💭 about it recently

See more comments

To view or add a comment, sign in

Explore topics