HI All,
I saw a topic on this previously, but it was related to Xcode 11 (late 2019). I am getting really frustrated with trying to set custom navigation bar colors for different view controllers.
The code is working only with the system default colors (below) :
// override func viewWillAppear( animated: Bool) {
// super.viewWillAppear(true)
// self.navigationController?.navigationBar.barTintColor = UIColor.system*"color"*
When I try creating a custom UI Color, my navigation bar just defaults to white. Nothing is changing this. I have tried every variation of the code below including UIColor.init as well as placing in viewDidApppear. Absolutely nothing is working and I'm starting to think it is an Xcode problem. Unless there is something I am missing?
// override func viewWillAppear( animated: Bool) {
// super.viewWillAppear(true)
// self.navigationController?.navigationBar.barTintColor = UIColor(red: 250, green: 190, blue: 110, alpha: 1)
// }
Anyone else having similar problems?
I saw a topic on this previously, but it was related to Xcode 11 (late 2019). I am getting really frustrated with trying to set custom navigation bar colors for different view controllers.
The code is working only with the system default colors (below) :
// override func viewWillAppear( animated: Bool) {
// super.viewWillAppear(true)
// self.navigationController?.navigationBar.barTintColor = UIColor.system*"color"*
When I try creating a custom UI Color, my navigation bar just defaults to white. Nothing is changing this. I have tried every variation of the code below including UIColor.init as well as placing in viewDidApppear. Absolutely nothing is working and I'm starting to think it is an Xcode problem. Unless there is something I am missing?
// override func viewWillAppear( animated: Bool) {
// super.viewWillAppear(true)
// self.navigationController?.navigationBar.barTintColor = UIColor(red: 250, green: 190, blue: 110, alpha: 1)
// }
Anyone else having similar problems?