Answers for "swift code to set the background color of navigation controller"

3

swift change navigation bar color

// 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
Posted by: Guest on March-04-2020
3

swift change background color

self.view.backgroundColor = UIColor.red
Posted by: Guest on March-20-2020

Code answers related to "swift code to set the background color of navigation controller"

Code answers related to "Swift"

Browse Popular Code Answers by Language