Waheed006
[WebView] Other Compose content not rendered while WebView is loading
Description While the Accompanist WebView is loading a url (we show a CircularProgressIndicator) it stops other Composable content from showing up. The other content is just white/blank.
Please checkout this screencast of the issue: 
Steps to reproduce
- Initialize webview, starts loading
- content above is not shown before the url is loaded
Expected behavior
- Initialize webview, start loading
- content above is shown all the time
Additional context The content above is not hidden or covered. It shows up as supposed in the Layout Inspector, it is just not shown on the real screen: 
It seems like the WebView is internally blocking the other Compose rendering.
Compose Version: 1.3.1
Accompanist Version: 0.27.1
The WebView creation:
Box(modifier = modifier) {
WebView(
state = webviewState,
client = webviewClient,
chromeClient = webviewChromeClient,
onCreated = {
onCreated(it)
}
)
val loadingState = webviewState.loadingState
if (loadingState is LoadingState.Loading) {
Box(
modifier = Modifier
.padding(24.dp)
.fillMaxWidth(),
contentAlignment = Alignment.Center
) {
TestbirdsIndeterminateCircularProgressIndicator()
}
}
}
The other content is in a Column, together with the WebView.
I'm happy about any help or workarounds for this issue. I can provide more information if needed.
Forked On 10 Dec 2023 at 12:04:57