remember Stylish Dismiss State
fun rememberStylishDismissState(initialValue: SwipeToDismissBoxValue = SwipeToDismissBoxValue.Settled, positionalThreshold: (totalDistance: Float) -> Float = SwipeToDismissBoxDefaults.positionalThreshold): SwipeToDismissBoxState
Convenience alias for rememberStylishSwipeToDismissBoxState with a shorter name. Returns a SwipeToDismissBoxState whose settle animation is configured with StylishTheme.animation tokens.
Use SwipeToDismissBoxState.isDismissed to check whether the content has been dismissed, SwipeToDismissBoxState.dismissOffset for the current swipe offset in pixels, and SwipeToDismissBoxState.progress / SwipeToDismissBoxState.currentValue for the animation progress and settled direction.
Parameters
initial Value
The initial settled value of the state. Defaults to SwipeToDismissBoxValue.Settled.
positional Threshold
The distance (as a fraction of the total swipe distance) after which the swipe settles into a dismissed or settled target. Defaults to SwipeToDismissBoxDefaults.positionalThreshold (56 dp).