Answers for "swift change navigation bar color"


swift change navigation bar color

// Navigation Bar:
navigationController?.navigationBar.barTintColor =

// Navigation Bar Text:
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor:]

// Tab Bar:
tabBarController?.tabBar.barTintColor = UIColor.brown

// Tab Bar Text:
tabBarController?.tabBar.tintColor = UIColor.yellow
Posted by: Guest on March-04-2020

swift navigation bar title color

// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [
  NSAttributedString.Key.foregroundColor: UIColor.white

UINavigationBar.appearance().titleTextAttributes = attrs
Posted by: Guest on June-16-2020

Code answers related to "swift change navigation bar color"

Code answers related to "Swift"

Browse Popular Code Answers by Language