LoginSignup
0
0

More than 5 years have passed since last update.

change the background color of the search bar

Posted at

let statusBar: UIView = UIApplication.shared.value(forKey: "statusBar") as! UIView
if statusBar.responds(to:#selector(setter: UIView.backgroundColor)) {
    statusBar.backgroundColor = UIColor.red
}
UIApplication.shared.statusBarStyle = .lightContent


source: https://stackoverflow.com/questions/38740648/how-to-set-status-bar-style-in-swift-3/40066798

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0