Closed LilMoke closed 1 year ago
Hi, this is not an Accompanist component. You'd want to file an issue upstream.
However, this is not intended to work. The anchors are not meant to be customized. They are defined internally in the component (https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/material/material/src/commonMain/kotlin/androidx/compose/material/BottomSheetScaffold.kt;l=426;drc=782309ea04a9712abcfa7e2b8ff8c6187d40a748). If you want custom anchors, we recommend building your own component.
Describe the bug
The following code is a snippet that creates a BottomSheetScaffold with a swipeable Modifier that as three anchor points, but when moving the bottom sheet up or down it just expands to full screen or collapses to the sheetPeekHeight:
Expected behavior
Swiping the BottomSheetScaffold should stop at three points, not just fullscreen or sheetpeekheight.