Does Compose Multiplatform allow changing the `sta...
# multiplatform
a
Does Compose Multiplatform allow changing the
statusBarColor
(android, ios, desktop) with “one line” of code? (similar to
accompanist
library) Or should I declare an expect/actual functions?
👀 1
p
Basically you first need to allow app to consume full screen on both android and ios, for android you can find details in

https://youtu.be/mlL6H-s0nF0?si=XjW8ypstWowmA8N0

and for ios I have mentioned here https://kotlinlang.slack.com/archives/C3PQML5NU/p1706362820888339 then you need to add modifier “windowInsetsPadding()” to your parent composable of the screen , say I have a Column and background color is blue this support was added since 1.5.0 in common module, Column( modifier = Modifier.fillMaxSize() .background(blue) .windowInsetsPadding(WindowInsets.SystemBars) ) { //column content } Now you will have full screen color as your background color including status bar and navigation bar at the bottom
🙌 2
❤️ 2
j
946 Views