skip to Main Content

SwiftUI: Displaying the navigation bar using NavigationStack – Ios swift

I want to display a navigation bar having an orange background color and a title with white color. Everything works fine with this setup: let navigationBarAppearance = UINavigationBarAppearance() navigationBarAppearance.titleTextAttributes = [.foregroundColor: UIColor(Color.white)] navigationBarAppearance.backgroundColor = .orange UINavigationBar.appearance().standardAppearance = navigationBarAppearance UINavigationBar.appearance().compactAppearance =…

VIEW QUESTION
Back To Top
Search