You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap a screen content to a Box for the iOS back animation blackout (#2146)
It fixes a crash when NavHost is located inside a scrollable container
and there is no available max size.
The reason is an additional iOS blackout layer.
Simple reproducer:
```kotlin
Column(Modifier.fillMaxSize().verticalScroll(rememberScrollState())) {
NavHost(...)
}
```
Inside the `verticalScroll` it is not possible to measure constrains:
```kotlin
.layout { m, c ->
val placeable = m.measure(Constraints.fixed(c.maxWidth, c.maxHeight)
layout(c.minWidth, c.minHeight) { placeable.place(0, 0) }
}
```
So, I wrapped the screen content in an additional Box and use
`matchParentSize()` modifier now.
Fixes https://youtrack.jetbrains.com/issue/CMP-8233
## Release Notes
### Fixes - Navigation
- Fix a crash on iOS when a `NavHost` is located in a scrollable
container
0 commit comments