~Did anyone experience issues with `ModalNavigatio...
# compose-ios
r
Did anyone experience issues with
ModalNavigationDrawer
on iOS?
It works fine on Android, but on iOS it begins expanded and immediately collapses. It causes an additional issue where somehow the collapsing animation causes a deadlock the threading; my main screen is collecting a flow (via collectAsState) and for some reason the entire UI freezes for a second. Edit: I have a workaround now, not directly related to the drawer but instead a custom predictive back animation, will try to make a separate minimal reproducible scenario later.
Copy code
val drawerState = rememberDrawerState(initialValue = DrawerValue.Closed)
ModalNavigationDrawer(
    drawerState = drawerState,
    drawerContent = {
        ModalDrawerSheet(modifier = Modifier.width(240.dp)) {
           ...
        }
    },
) {
e
Can you please post an issue on youtrack with a full repro and version used?
r
Hi @Elijah Semyonov, thank you, after trying to make a minimal implementation and not being able to repro it, I traced down a source with a predictive back animation fallback that I was using (using Decompose). It somehow interfered and caused a long 1-2 second stutter. It still does not look expected that the animation would stutter like that but I ran out of energy right now to dig deeper into why or to update the minimal example to reproduce it. I might do at a later time, for now I will just update the description 🙂
e
It could be related to Compose synchronously rendering its first frame to avoid flickering. There is no opt-out of this behavior currently.
👍 1