Compose Modifier

zIndex

Creates a modifier that controls the drawing order for the children of the same layout parent.

ZIndexModifierSample

@Composable
fun ZIndexModifierSample() {
    Box {
        Text("Drawn second", Modifier.zIndex(1f))
        Text("Drawn first")
    }
}