I want threshold value of swipeable item so I can do something when a certain threshold is reached. For example, changing the color of an item swiped empty place.
The swipeable can be added like :
Box(
modifier = Modifier
.fillMaxWidth()
.height(IntrinsicSize.Min)
.swipeable(
state = swipeAbleState,
anchors = anchors,
thresholds = { _, _ ->
FractionalThreshold(.5f)
},
orientation = Orientation.Horizontal
)
)