Custom Navigation in SwiftUI

Standard Navigation Controllers given within swiftUI’s framework are great and allow for quite a bit of flexibility. Sometimes though, they are missing a key piece of functionality you are looking for, or maybe you don’t like the standard transition included in them. Luckily, implementing your own custom solution to navigation is easy, and does not…

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: TabView with NavigationView

To have a TabView with a Navigation View, you have to wrap the pages in a TabView with their own NavigationView. First, Start off with a tab view with three pages: Next, wrap each of the TabView’s Items in their own NavigationView, and make sure to move the tab item to be an object of…

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…