Hello, I'm trying to set a transparent status bar ...
# compose-ios
s
Hello, I'm trying to set a transparent status bar and navigation bar in KMP. I was able to get it working on Android with the code snippet below plus making the status and navigation bars transparent. How can I achieve something similar in IOS? in MainActivity.kt
Copy code
WindowCompat.setDecorFitsSystemWindows(window, false)
r
Copy code
struct ContentView: View {
    var body: some View {
        ComposeView().ignoresSafeArea(.all)
    }
}
This works fine for me
o
+1
.ignoresSafeArea()
is the way to go. And later in the Compose code:
modifier = Modifier.systemBarsPadding()