-1

I have been trying for quite a while now to change the status bar color on a specific view to white when the top of the view's background is black but the color scheme of the view is on light mode. I am using @main for my app's launch point and SwiftUI for my app's code.

Thank you for any help and here's a screenshot to show what I'm talking about:

My frustration, illustrated

Mark Reggiardo
  • 467
  • 2
  • 4
  • 15

1 Answers1

0

You can do that:

var body: some View {
  ZStack { ... }
  .preferredColorScheme(.dark OR .light) // white tint on status bar
}