@riggaroo Hi, Rebecca, I have a question about implementing "swipe to dismiss" feature in Android with Jetpack Compose. I am trying to use "SwipeToDismissBox" but I am stuck on an issue, and I hope that you can guide me.

I am trying to set up a minimum threshold after which the swipe is detected (50% of the width). If the swipe threshold is less than that, then I want it to snap back to origin. I can't figure out how to do that.

Set up:
1. https://github.com/manoflogan/ComposeAuthentication/blob/email/email/src/main/java/com/manoflogan/email/composables/EmailContentList.kt#L44-L53 and https://github.com/manoflogan/ComposeAuthentication/blob/email/email/src/main/java/com/manoflogan/email/composables/EmailContentList.kt#L76

ComposeAuthentication/email/src/main/java/com/manoflogan/email/composables/EmailContentList.kt at email · manoflogan/ComposeAuthentication

Compose Authentication screen. Contribute to manoflogan/ComposeAuthentication development by creating an account on GitHub.

GitHub
ComposeAuthentication/email/src/main/java/com/manoflogan/email/composables/EmailContent.kt at email · manoflogan/ComposeAuthentication

Compose Authentication screen. Contribute to manoflogan/ComposeAuthentication development by creating an account on GitHub.

GitHub