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:
parent
87dfc98d36
commit
c7d2402619
2 changed files with 5 additions and 2 deletions
|
@ -13,7 +13,7 @@ struct ComposeView: UIViewControllerRepresentable {
|
||||||
struct ContentView: View {
|
struct ContentView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ComposeView()
|
ComposeView()
|
||||||
.ignoresSafeArea(.keyboard) // Compose has own keyboard handler
|
.ignoresSafeArea(.all, edges: .bottom) // Compose has own keyboard handler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,10 @@ import SwiftUI
|
||||||
struct iOSApp: App {
|
struct iOSApp: App {
|
||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
WindowGroup {
|
WindowGroup {
|
||||||
|
ZStack {
|
||||||
|
Color.white.ignoresSafeArea(.all) // status bar color
|
||||||
ContentView()
|
ContentView()
|
||||||
|
}.preferredColorScheme(.light)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue