Chris Johnson
01/05/2022, 8:35 PMSwipeToDismiss
and swipeable/draggable
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 swipeable
a resistanceConfig that you can define. This would make it hard to swipe on a certain side, but not impossible.Rick Regan
01/05/2022, 11:10 PMSwipeToDismiss
but I see that it has this parameter: directions: Set<DismissDirection> = setOf(EndToStart, StartToEnd)
. Couldn't you just call it with directions = setOf(StartToEnd)
, for example?Chris Johnson
01/05/2022, 11:11 PMEndToStart
. 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 directionRick Regan
01/06/2022, 12:26 AM