ZIndexModifierSample
@Composable
fun ZIndexModifierSample() {
Box {
Text("Drawn second", Modifier.zIndex(1f))
Text("Drawn first")
}
}Creates a modifier that controls the drawing order for the children of the same layout parent.
Compose Multiplatform
Ship iOS, desktop, and web apps with Compose
RevenueCat
Add subscriptions to your apps in minutes
@Composable
fun ZIndexModifierSample() {
Box {
Text("Drawn second", Modifier.zIndex(1f))
Text("Drawn first")
}
}Last updated: