Code
Swipe – Swipe gestures for Compose UI

Swipe
builds composables that can be swiped left or right for revealing actions. Unlike SwipeToDismiss, it is designed for swipe actions that do not dismiss the composable.
Example:
val archive = SwipeAction( icon = painterResource(R.drawable.archive), background = Color.Green, onSwipe = { … } ) val snooze = SwipeAction( icon = painterResource(R.drawable.snooze), background = Color.Yellow, isUndo = true, onSwipe = { … }, ) SwipeableActionsBox( startActions = listOf(archive), endActions = listOf(snooze) ) { // Swipeable content goes here. }
