How would I go about changing the color of the UINavigationBar
in Swift?
Most things online say to do something like:
[self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
Which I translated to
let titleDict: NSDictionary = ["NSForegroundColorAttributeName": UIColor.whiteColor()]
self.navigationController.navigationBartitleTextAttributes = titleDict
//self is referring to a UIViewController
But it doesn't work. I already changed the background and button colors, but the text color doesn't change. Any ideas?