If you want to set the background color of the navigation bar:
UINavigationBar.appearance().barTintColor = UIColor.redColor()
Note. RGB values โโare from 0.0 to 1.0, so you need to divide them by 255 or your color will be just white. The following shade:
UINavigationBar.appearance().tintColor = UIColor(red: 73.0 / 255.0, green: 155.0 / 255.0, blue: 255.0/ 255.0, alpha: 1.0)
Then, to set the title text:
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: someColor, NSFontAttributeName: someFont]
Finally, for panel items:
UIBarButtonItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: color, NSFontAttributeName: buttonFont], forState: UIControlState.Normal)
source share