Yep! That is what I'm currently doing except I use
EndToStart
. It still allows you to drag from
StartToEnd
it just doesn't allow it to be dismissed. There's also Resistance that basically indicates to the user that you can't swipe in the direction you don't specify. I'd like to get rid of the swipe altogether if you can't do it in that direction
r
Rick Regan
01/06/2022, 12:26 AM
I played around with this a bit (a good opportunity to learn something new about Compose -- thanks 🙂) and I could not find a solution either. (Sometimes the answer to these questions is "this is how Material works", but I did not readily find a definition for swiping to dismiss.)