MohamedRejeb / Calf

Calf is a library that allows you to easily create adaptive UIs and access platform specific APIs with Compose Multiplatform (Adaptive UI, File Picker, WebView, Permissions...).
https://mohamedrejeb.github.io/Calf/
Apache License 2.0
865 stars 37 forks source link

setDetents with UISheetPresentationControllerDetent #49

Closed Gaubee closed 7 months ago

Gaubee commented 8 months ago

https://github.com/MohamedRejeb/Calf/blob/6cec0de74568e7088f8a007105f4897cb1f5f3a1/calf-ui/src/iosMain/kotlin/com/mohamedrejeb/calf/ui/sheet/BottomSheetManager.kt#L64-L69

should be:

        listOf(
          UISheetPresentationControllerDetent.mediumDetent(),
          UISheetPresentationControllerDetent.largeDetent(),
        )
MohamedRejeb commented 7 months ago

Thank you! I fixed it. It will be available in the next release.