I am trying to remove the translucent color of navigation bar in SwiftUI.
In the picture you can see, that the color of nav bar is not the same like below.
How is it possible, that the navigation bar has the same color?
I am trying to remove the translucent color of navigation bar in SwiftUI.
In the picture you can see, that the color of nav bar is not the same like below.
How is it possible, that the navigation bar has the same color?
Try adding these to your init() modifiers:
UINavigationBar.appearance().barTintColor = .clear
UINavigationBar.appearance().setBackgroundImage(UIImage(named: "whatever"))