Home > Blockchain >  How to dynamically change navigation bar color on ios15?
How to dynamically change navigation bar color on ios15?

Time:11-26

What worked for years was

self.navigationController?.navigationBar.barTintColor = MY_COLOR

but in iOS15 this is not working. There's answers for how to change it on app start, but I need to change it after the nav bar's been shown and without reloading the view controller. This is possible in iOS 14 and older.

CodePudding user response:

In your VC you can try adjusting the view.backgroundColor

      UINavigationBar?.view.backgroundColor = MY_COLOR
  • Related