AutomaticStatusBarColor is a lightweight zero line component to manage status bar color automaticly throughout your application
To run the example project, clone the repo, and run pod install
from the Example directory first.
AutomaticStatusBarColor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AutomaticStatusBarColor'
2.0.0
1.0.1
Add the following line to your info.plist : View controller-based status bar appearance, and select the value NO
AutomaticStatusBarColor is designed to work thru all your application with a single line of code.
You should add this line in your app delegate :
_ = AutomaticStatusBarColor.sharedInstance
But, if you want some control, you can access AutomaticStatusBarColor methods configuration thru UIViewController
extension
AutomaticStatusBarColor is designed to work thru all your application without a single line of code.
But, if you want some control, you can access AutomaticStatusBarColor methods configuration thru UIViewController
extension
Just hit the method disableAutomaticStatusBarColor
disableAutomaticStatusBarColor()
You can choose status bar color for one controller if you don't like the result or wanna keep the hand over it.
force(statusBarStyle: .lightContent)
If you've planned to use a navigation bar, take care to hide or show it before the super.viewWillAppear(:)
Victor Carmouze, [email protected]
AutomaticStatusBarColor is available under the MIT license. See the LICENSE file for more info.