From c7d2402619744ada6d2e70c5de52b4b7e6204aef Mon Sep 17 00:00:00 2001 From: Sebastian Aigner Date: Tue, 16 May 2023 22:00:04 +0200 Subject: [PATCH] Add explicit place to change the status bar color Make it so that Compose stretches to the bottom of the screen (no white border) --- iosApp/iosApp/ContentView.swift | 2 +- iosApp/iosApp/iOSApp.swift | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/iosApp/iosApp/ContentView.swift b/iosApp/iosApp/ContentView.swift index f7f6457..64e7056 100644 --- a/iosApp/iosApp/ContentView.swift +++ b/iosApp/iosApp/ContentView.swift @@ -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 } } diff --git a/iosApp/iosApp/iOSApp.swift b/iosApp/iosApp/iOSApp.swift index 0648e86..1f23b44 100644 --- a/iosApp/iosApp/iOSApp.swift +++ b/iosApp/iosApp/iOSApp.swift @@ -4,7 +4,10 @@ import SwiftUI struct iOSApp: App { var body: some Scene { WindowGroup { - ContentView() + ZStack { + Color.white.ignoresSafeArea(.all) // status bar color + ContentView() + }.preferredColorScheme(.light) } } } \ No newline at end of file