[ad_1]
I’ve seen a bug launched when constructing with Xcode 14.
The navigation bar of my swiftui view is whited out and doesn’t correctly show the title, again button or different navigation gadgets.
I have never discovered anybody else reporting this difficulty on-line however it’s clearly a change in how Xcode builds the app.
I’ve verified that constructing with Xcode 13.4.1 produces the anticipated navigation bar.
I manually downloaded 13.4.1 so as to proceed deploying builds with out this bug however I do know ultimately I must examine why Xcode 14 is inflicting this difficulty. I am hoping there’s a repair that Apple discovers and releases to repair this difficulty.
The navigation bar is programmatically set via a view controller utilizing a UIHostingController as its rootView.
I’ve discovered that this solely occurs when injecting swiftui right into a UIKit app utilizing UIHostingController. The SwiftUI view doesn’t use a NavigationView so there should not be any overlap between what’s displayed within the navigation bar from the viewController and what’s displayed from the SwiftUI view.
[ad_2]
