Chris Johnson01/05/2022, 8:35 PM
and was wondering if there's a configuration I'm missing to completely disallow swiping in a certain direction? Currently I see we have in
a resistanceConfig that you can define. This would make it hard to swipe on a certain side, but not impossible.
Rick Regan01/05/2022, 11:10 PM
but I see that it has this parameter:
. Couldn't you just call it with
directions: Set<DismissDirection> = setOf(EndToStart, StartToEnd)
, for example?
directions = setOf(StartToEnd)
Chris Johnson01/05/2022, 11:11 PM
. It still allows you to drag from
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
Rick Regan01/06/2022, 12:26 AM