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
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user