Unable to show overlay #1589
Answered
by
ZacSweers
troyjperales
asked this question in
Q&A
-
I'm adding the first overlay to an app, but it always shows overlays as unavailable. I thought availability depended on the platform only, but I must be missing something because I'm working in Android where overlays are supported. What other reasons would overlays be unavailable? fun SomeUi(uiState: UiState, modifier: Modifier) {
if (uiState.isModalShowing) {
OverlayEffect {
val result = pickOption() ?: return@OverlayEffect
uiState.eventSink(PickOption(result.option))
}
}
}
private fun OverlayHost.pickOption(): ModalScreen.Result? {
return showFullScreenOverlay(ModalScreen) as ModalScreen.Result?
} |
Beta Was this translation helpful? Give feedback.
Answered by
ZacSweers
Aug 21, 2024
Replies: 1 comment 1 reply
-
Is your circuit entry point wrapped in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
troyjperales
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your circuit entry point wrapped in
ContentWithOverlays
?