Latest 2.0.0
Homepage https://github.com/dk53/AutomaticStatusBarColor
License MIT
Platforms ios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

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 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

Basic usage (Swift 3)

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.

Latest podspec

{
    "name": "AutomaticStatusBarColor",
    "version": "2.0.0",
    "summary": "A one line component to manage status bar color automaticly throughout your application",
    "swift_version": "4.0",
    "description": "Don't worry anymore about the pain of managing status bar thru all your controllers. Simply let the plugin do his work.nYou can disable for one controller, or change by youtself the status bar color.",
    "homepage": "https://github.com/dk53/AutomaticStatusBarColor",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Victor Carmouze": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dk53/AutomaticStatusBarColor.git",
        "tag": "2.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "AutomaticStatusBarColor/Classes/*"
}

Pin It on Pinterest

Share This