Swipe To Delete

August 13, 2024 ยท View on GitHub

Swipe LeftSwipe RightSwipe Left + Right

In Jetpack Compose, swipe gestures from the left, right, or both sides can be implemented using the swipeable modifier.

  • Swipe from Left: Triggers an action or transition when the user swipes from the left edge of the component..
  • Swipe from Right: Activates a response when swiping from the right edge of the component.
  • Swipe from Both: Sides: Allows for gestures from either side, enabling different actions depending on the swipe direction.