1// Navigation Bar:
2navigationController?.navigationBar.barTintColor = UIColor.green
3
4// Navigation Bar Text:
5navigationController?.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.orange]
6
7// Tab Bar:
8tabBarController?.tabBar.barTintColor = UIColor.brown
9
10// Tab Bar Text:
11tabBarController?.tabBar.tintColor = UIColor.yellow
1// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
2let attrs = [
3 NSAttributedString.Key.foregroundColor: UIColor.white
4]
5
6UINavigationBar.appearance().titleTextAttributes = attrs