Skip to content

Commit

Permalink
Add currentUIViewController to remember keys
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Aug 7, 2024
1 parent a721534 commit 0b8ca62
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ actual fun AdaptiveBottomSheet(
content: @Composable() (ColumnScope.() -> Unit)
) {
val compositionLocalContext = currentCompositionLocalContext
val currentUIViewController = LocalUIViewController.current

val isDark = isSystemInDarkTheme()

val sheetManager = remember {
val sheetManager = remember(currentUIViewController) {
BottomSheetManager(
parentUIViewController = currentUIViewController,
dark = isDark,
onDismiss = {
onDismissRequest()
Expand Down

0 comments on commit 0b8ca62

Please sign in to comment.