White status bar with “App Scene WindowGroup”

With the new App Scene WindowGroup structure in Xcode 12, how can you specify the white status bar? I've searched around but so far have not been able to find an answer.

Code Block swift
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
AppView()
}
}
}


Answered by BabyJ in 629528022
In Info.plist you will need to add two rows:
  1. Key: View controller-based status bar appearance Value: NO

  2. Key: Status bar style Value: Light Content

Accepted Answer
In Info.plist you will need to add two rows:
  1. Key: View controller-based status bar appearance Value: NO

  2. Key: Status bar style Value: Light Content

Thanks @BabyJ, this worked to change the status bar to white, but now I'm not able to hide the status bar with .statusBar(hidden: hidden).
White status bar with “App Scene WindowGroup”
 
 
Q