Answers for "swiftui navigation bar back button color"

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

show back button in navbar swift

let backButton = UIBarButtonItem()
 backButton.title = "New Back Button Text"
 self.navigationController?.navigationBar.topItem?.backBarButtonItem = backButton
Posted by: Guest on November-26-2019

Code answers related to "swiftui navigation bar back button color"

Code answers related to "Swift"

Browse Popular Code Answers by Language