Add explicit place to change the status bar color

Make it so that Compose stretches to the bottom of the screen (no white border)
This commit is contained in:
Sebastian Aigner 2023-05-16 22:00:04 +02:00
parent 87dfc98d36
commit c7d2402619
2 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@ struct ComposeView: UIViewControllerRepresentable {
struct ContentView: View {
var body: some View {
ComposeView()
.ignoresSafeArea(.keyboard) // Compose has own keyboard handler
.ignoresSafeArea(.all, edges: .bottom) // Compose has own keyboard handler
}
}

View File

@ -4,7 +4,10 @@ import SwiftUI
struct iOSApp: App {
var body: some Scene {
WindowGroup {
ZStack {
Color.white.ignoresSafeArea(.all) // status bar color
ContentView()
}.preferredColorScheme(.light)
}
}
}