Summary
The README lists "Swipe lists" under "Coming Soon." Compose Material3 provides SwipeToDismissBox, the recommended API for implementing swipe-to-dismiss and swipe actions on list items.
Description
This feature would add a demo showcasing:
- Basic SwipeToDismissBox — swipe an item left to delete it from a
LazyColumn.
- Swipe with reveal actions — swipe right to reveal an action button (e.g. "Archive").
- Undo delete — a
Snackbar with an "Undo" action after dismissal, demonstrating the interaction pattern recommended by Material Design 3 guidelines.
Proposed Location
- New component in
components/swipedismiss/ or as a section within an existing "Lists" demo screen.
- Exposed from the Home screen under "Advance Lists & Animations."
Acceptance Criteria
References
Summary
The README lists "Swipe lists" under "Coming Soon." Compose Material3 provides
SwipeToDismissBox, the recommended API for implementing swipe-to-dismiss and swipe actions on list items.Description
This feature would add a demo showcasing:
LazyColumn.Snackbarwith an "Undo" action after dismissal, demonstrating the interaction pattern recommended by Material Design 3 guidelines.Proposed Location
components/swipedismiss/or as a section within an existing "Lists" demo screen.Acceptance Criteria
SwipeToDismissBoxdemo with directional thresholds configured.Snackbarappears after deletion.References