SwipeToDismiss

fun SwipeToDismiss(onDelete: () -> Unit, modifier: Modifier = Modifier, content: @Composable () -> Unit)

A composable that allows swiping to dismiss an item.

Parameters

onDelete

The callback to be invoked when the item is swiped to dismiss.

modifier

The modifier to be applied to the composable.

content

The content to be displayed.