Answers for "swift 5 change status bar background color"

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
2

swift change background color

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

Code answers related to "swift 5 change status bar background color"

Code answers related to "Swift"

Browse Popular Code Answers by Language