Hello. How can I make the background full-screen? ...
# multiplatform
p
Hello. How can I make the background full-screen? (ignore the Safe area)
1
p
Try changing
.ignoresSafeArea(.keyboard)
in the swift side to another value:
Copy code
struct ContentView: View {

    var iosBridge: IosBridge

    var body: some View {
        ComposeView(iosBridge: iosBridge)
                //.ignoresSafeArea(.keyboard) // Compose has own keyboard handler
                .ignoresSafeArea(.all, edges: .bottom) // If prefered to handle this in compose land

    }
}
However you will have to then handle the insets in conpose land
p
here is the current code, I tried to comment out too, didn’t work
This works
Copy code
ComposeView().ignoresSafeArea(.all)
👌 1
👍 1
v
@Pablichjenkov Any example on how to handle the insets in compose?
p
There are a couple around but I don't have one specific off the top of my head, but the official documentation is good. https://developer.android.com/develop/ui/compose/layouts/insets Notice at the end that many material 3 Composables handle insets already
v
Thank you @Pablichjenkov!!
👍 1
y
how do you achieve the same behavior in android?
c
Try this in your MainActivity onCreate()
Copy code
enableEdgeToEdge()