1

I am trying to remove the translucent color of navigation bar in SwiftUI.

enter image description here

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?

Beso
  • 1,176
  • 5
  • 12
  • 26
  • Does this answer your question? [Make SwiftUI navigation bar transparent](https://stackoverflow.com/questions/57616430/make-swiftui-navigation-bar-transparent) – RTXGamer Oct 15 '21 at 12:34

1 Answers1

0

Try adding these to your init() modifiers:

UINavigationBar.appearance().barTintColor = .clear
UINavigationBar.appearance().setBackgroundImage(UIImage(named: "whatever"))
Shahriar Nasim Nafi
  • 1,160
  • 15
  • 19
Anjali
  • 19
  • 3