The code in the :thread: works fine on Android, bu...
# compose-ios
l
The code in the 🧵 works fine on Android, but when I throw it in the iOS Application block, I get a crash.
Copy code
LazyColumn(modifier = Modifier.fillMaxHeight()) {
                items(5) {
                    Text(it.toString() + "value")
                }
            }
Copy code
TODO: set title to SkiaWindow
ComposeWindow.setContent
Uncaught Kotlin exception: kotlin.IllegalStateException: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed. One of the common reasons is nesting layouts like LazyColumn and Column(Modifier.verticalScroll()). If you want to add a header before the list of items please add a header as a separate item() before the main items() inside the LazyColumn scope. There are could be other reasons for this to happen: your ComposeView was added into a LinearLayout with some weight, you applied Modifier.wrapContentSize(unbounded = true) or wrote a custom layout. Please try to remove the source of infinite constraints in the hierarchy above the scrolling container.
The same crash happens with
Copy code
Column(Modifier.fillMaxSize()) {
    LazyColumn {
        items(5) {
            Text(i.toString() + "value")
        }
    }
}
d
l
1.2.0
This worked in one of the earlier dev builds, but broke with the beta
217 Views