StatusBark helps you globally customize all view controllers' statusBarStyle from .default to .lightContent without manually changing statusBarStyle in each view controller, making custom view controllers hierarchy or using deprecated UIApplication.statusBarStyle but still allows you to change statusBarStyle for selected controllers.
- iOS10
StatusBark is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'StatusBark'
import StatusBark
StatusBark.shared.globalStatusBarStyle = .lightContent
and if you need to revert statusBarStyle back to .default on some view controllers you use regular statusBarStyle
class CustomizedViewController: BaseViewController {
override var statusBarStyle: UIStatusBarStyle {
return .default
}
}
An example project is included with this repo. To run the example project, clone the repo, and run pod install
from the Example directory first.
Fyodor Volchyok
StatusBark is available under the MIT license. See the LICENSE file for more info.