-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
blocked-by-cmpThis issue is cannot be resolved until a specific bug or issue on Compose Multiplatform is resolved.This issue is cannot be resolved until a specific bug or issue on Compose Multiplatform is resolved.platform: iOS
Description
I have this code of base modal sheet in my app
ModalBottomSheet(
state = state,
onDismiss = onDismissed,
) {
Scrim()
Sheet(
modifier = Modifier
.statusBarsPadding()
.padding(sheetPadding)
.shadow(4.dp, RoundedCornerShape(topStart = 28.dp, topEnd = 28.dp))
.clip(RoundedCornerShape(topStart = 28.dp, topEnd = 28.dp))
.background(Color.White)
.widthIn(max = 640.dp)
.fillMaxWidth()
.imePadding()
) {
content()
}
}
On Android it looks like this (status bar is not covered by the sheet)

On iOS like this (status bar is partially covered by the sheet)
This happens only if software keyboard is visible.
Found working solution so far is to set DialogProperties.useSoftwareKeyboardInset to true
So it would be nice to be able to control DialogProperties of Modals.
Metadata
Metadata
Assignees
Labels
blocked-by-cmpThis issue is cannot be resolved until a specific bug or issue on Compose Multiplatform is resolved.This issue is cannot be resolved until a specific bug or issue on Compose Multiplatform is resolved.platform: iOS