Is this an idiomatic way of doing a "swipe-to-dism...
# compose
v
Is this an idiomatic way of doing a "swipe-to-dismiss" sheet?
Copy code
val swipeableState = rememberSwipeableState(initialValue = 0)
LaunchedEffect(swipeableState.targetValue) {
    if (swipeableState.targetValue == 1) {
        onClose()
    }
}
j
Yes