SwiftUI: Status Bar Text Color

To change the status bar text color, you need to edit the UIHostingController call in the SceneDelegate. You can do this by creating your own file, named: HostingController, and having that file contain the following code: and then in the scene delegate changing the line: To: And voila, you have changed the status bar style.

SwiftUI: Status Bar Translucency

When working on an app, I encountered an issue when wrapping NavigationViews in a TabView. The navigation bar would show the proper translucency when other views were scrolled behind it, but the status bar had a black background, (white when in light mode), that I could not get rid of. Before Code: Before Simulator: As…