In a long list where all the elements are wrapped in CupertinoSwipeBox, flipping to the bottom when trying to open in any direction, the box closes automatically
Item code:
item(key = "key") {
val boxState = rememberCupertinoSwipeBoxState()
CupertinoSwipeBox(
modifier = Modifier.fillMaxWidth(),
state = boxState,
items = {
when {
boxState.dismissDirection.isTowardsStart -> { ... }
else -> Unit
}
}
) { ... }
}
If you remove the binding on dismissDirection in items, everything works fine
In a long list where all the elements are wrapped in CupertinoSwipeBox, flipping to the bottom when trying to open in any direction, the box closes automatically
Item code:
If you remove the binding on dismissDirection in items, everything works fine
Why is this happening yet I don't understand