Created
December 20, 2016 04:37
-
-
Save SachK13/b1c40eba4167ac3e0b22cb15fa8154dd to your computer and use it in GitHub Desktop.
Change Status Bar Background Color.
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
func setStatusBarBackgroundColor(color: UIColor) { | |
guard let statusBar = UIApplication.sharedApplication().valueForKey("statusBarWindow")?.valueForKey("statusBar") as? UIView else { | |
return | |
} | |
statusBar.backgroundColor = color | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment