hapticSwipeToDismissBox

A Modifier that provides haptic feedback when a SwipeToDismissBox is swiped past a certain threshold.

This modifier observes the swipeToDismissBoxState and triggers a HapticFeedbackType.GestureThresholdActivate haptic feedback event the first time the swipe gesture crosses the dismissal threshold. It ensures that the feedback is only triggered once per gesture.

Parameters

swipeToDismissBoxState

The SwipeToDismissBoxState to observe for swipe state changes.