SwipeToDismissBox
@Composable
A composable that can be dismissed by swiping left or right.
Parameters
state
The state of this component.
modifier
Optional Modifier for this component.
enableDismissFromStartToEnd
Whether SwipeToDismissBox can be dismissed from start to end.
enableDismissFromEndToStart
Whether SwipeToDismissBox can be dismissed from end to start.
gesturesEnabled
Whether swipe-to-dismiss can be interacted by gestures.
onDismiss
Optional callback to be called when content is dismissed. onDismissed provides the current dismissed direction.
content
The content that can be dismissed.