Cannot draw behind Top and Bottom Bars in IOS.
Hi, I am trying KMP for android and ios but had a problem. In Kotlin blog it says "Using the WindowInsets API, you can draw background content via Compose Multiplatform behind the notch" but I couldn't do it. Does anyone know how can I draw background for Top and Bottom Bar?
First, disable platform-specific default insets being applied in the app.
iosApp/iosApp/ContentView.swiftfile.enableEdgeToEdge()in your Activity'sonCreate.Your app will now start drawing content behind the top and bottom bar; Now you can use WindowInsets API from Compose to apply correct padding from within compose.