TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
Maintained by litt1e-p.
Change UIStatusBar backgroundColor dynamically which made via runtime & swift
pod 'LPStatusBarBackgroundColor-swift', '~> 1.0.0'
Objective C version is here
//import
import LPStatusBarBackgroundColor_swift
//set navigationBar's backgroundImage with height 44
navigationController!.navigationBar.setBackgroundImage(UIImage.imageWithColor(yourColor, size: CGSizeMake(
UIScreen.mainScreen().bounds.size.width
, 44)), forBarPosition: UIBarPosition.Any, barMetrics: UIBarMetrics.Default)
/** in navigationController */
self.navigationBar.statusBarBackgroundColor = UIColor.blackColor() //any color you want
/** in navigationController's rootViewController */
self.navigationController?.navigationBar.statusBarBackgroundColor = UIColor.brownColor //any color you want
MIT