Swift Change Navigation Bar Color

[Solved] Swift Change Navigation Bar Color | Swift - Code Explorer | yomemimo.com
Question : swift change navigation bar color

Answered by : mobile-star

// Navigation Bar:
navigationController?.navigationBar.barTintColor = UIColor.green
// Navigation Bar Text:
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.orange]
// Tab Bar:
tabBarController?.tabBar.barTintColor = UIColor.brown
// Tab Bar Text:
tabBarController?.tabBar.tintColor = UIColor.yellow

Source : | Last Update : Wed, 11 Mar 20

Question : swift navigation bar title color

Answered by : sej

// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [ NSAttributedString.Key.foregroundColor: UIColor.white
]
UINavigationBar.appearance().titleTextAttributes = attrs

Source : | Last Update : Tue, 23 Jun 20

Answers related to swift change navigation bar color

Code Explorer Popular Question For Swift