https://kotlinlang.org logo
#compose
Title
# compose
n

Nat Strangerweather

02/17/2022, 4:24 PM
Is there an obvious way to make sure my animated composable passes over another composable rather than beneath it? Or do I need to rethink my app structure? To be clearer, the composables are currently positioned as a column.
f

Filip Wiesner

02/17/2022, 4:25 PM
Maybe
zIndex
could help 🤔 But only if it's in the same scope as the other composable
n

Nat Strangerweather

02/17/2022, 4:27 PM
I don't know, it is two composables placed as a column.
I guess I need to stack them.
f

Filip Wiesner

02/17/2022, 4:29 PM
If you mean that both composables are in the same column
Copy code
Column {
    ComponentA()
    ComponentB()
}
than yes, you can control the draw order by using
zIndex
modifier.
🙏 1
n

Nat Strangerweather

02/17/2022, 4:31 PM
Oh ok, thanks for this I didn't realize! 😊
👌 1