AutomaticStatusBarColor
Description
AutomaticStatusBarColor is a lightweight zero line component to manage status bar color automaticly throughout your application
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
AutomaticStatusBarColor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AutomaticStatusBarColor'
Lastest Swift 4 version
2.0.0
Lastest Swift 3 version
1.0.1
Usage
First step
Add the following line to your info.plist : View controller-based status bar appearance, and select the value NO
Basic usage
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
Disable for one controller
Just hit the method disableAutomaticStatusBarColor
disableAutomaticStatusBarColor()
Choose manually status bar color
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)
Navigation Bar
If you've planned to use a navigation bar, take care to hide or show it before the super.viewWillAppear(:)
Author
Victor Carmouze, [email protected]
License
AutomaticStatusBarColor is available under the MIT license. See the LICENSE file for more info.