Skip to content

Utility to globally override default statusBarStyle

License

Notifications You must be signed in to change notification settings

fvolchyok/StatusBark

Repository files navigation

StatusBark

Version License Platform

Overview

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.

Requirements

  • iOS10

Installation with CocoaPods

StatusBark is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'StatusBark'

Usage

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
    }

}

Example Project

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.

Author

Fyodor Volchyok

License

StatusBark is available under the MIT license. See the LICENSE file for more info.

About

Utility to globally override default statusBarStyle

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published