Created
October 19, 2017 09:39
-
-
Save flaviodsilverio/50e68bf5579ff33678a9750aaa5c16a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIApplication { | |
class var statusBarBackgroundColor: UIColor? { | |
get { | |
return (shared.value(forKey: "statusBar") as? UIView)?.backgroundColor | |
} set { | |
(shared.value(forKey: "statusBar") as? UIView)?.backgroundColor = newValue | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment