Answers for "swiftui status bar 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
2

swift change status bar color

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    setNeedsStatusBarAppearanceUpdate()
}
override var preferredStatusBarStyle: UIStatusBarStyle {
    .lightContent
}
Posted by: Guest on March-20-2020
0

swift set uicolor

let swiftColor = UIColor(red: 1, green: 165/255, blue: 0, alpha: 1)
Posted by: Guest on June-08-2020

Code answers related to "swiftui status bar color"

Code answers related to "Swift"

Browse Popular Code Answers by Language