I am running into an issue. I want the whole navigation bar (including safe area) color to change but the safe area color doesnt change at all (no matter what changes I make to it).
Heres
navigationController?.navigationBar.isTranslucent = false
navigationController?.navigationBar.backgroundColor = .green
navigationItem.titleView = searchBar
I even tried changing the Nav Bar’s:
- barTintColor
- tintColor
with no luck.
Current Navigation Bar Color
This view controller is being presented from the Scene Delegate using a navigation controller.
Let me know if you need any additional information.
2
Answers
Found a solution:
I entered this in the function where I was configuring the navigation bar
Credit: https://developer.apple.com/forums/thread/682420
Try this in your SceneDelegate