Closed taetae98coding closed 6 months ago
Thanks for your feedback. If I understood correctly, you want to show a dialog above the WebView and it failed. However, in your screenshot, it seems that the dialog pops out successfully. Could you explain its current behaviour and your expected behaviour? Thanks!
You can see webview and topbar.
But WebView not
In Android Dialog show with dim background but ios not.
Here is Android example.
@taetae98coding Thank you for your explanation! I also reproduced the bug. After conducting some research, I think it is the bug caused by UIKitView
. The WebView on the iOS side is implemented by WKWebView
wrapped inside the UIKitView.
I tried to replace WKWebView
with UITextView
and the problem still exists.
I also found a similar issue in Compose Multiplatform repo: https://github.com/JetBrains/compose-multiplatform/issues/3848.
I will submit this bug to JetBrains and wait for their solution. Thank you for your feedback.
@taetae98coding I have submitted the issue https://github.com/JetBrains/compose-multiplatform/issues/3881
@KevinnZou Thank you for your relply!!
it is fixed compose 1.5.10
it is fixed compose 1.5.10
Yes, I am waiting for the release of 1.5.10.
It has been fixed in https://github.com/KevinnZou/compose-webview-multiplatform/releases/tag/1.7.0
I just use M3 Scaffold and
androidx.compose.ui.window.Dialog
but dim not working in iosAndroid is ok
@Composable private fun WebViewDialog( uiState: MutableState,
visibleState: MutableState,
) {
if (visibleState.value) {
Dialog(
onDismissRequest = { visibleState.value = false },
) {
DialogContent(
modifier = Modifier.fillMaxWidth(),
uiState = uiState,
visibleState = visibleState,
)
}
}
}