-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.md
More file actions
84 lines (49 loc) · 2.45 KB
/
README.md
File metadata and controls
84 lines (49 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# AutomaticStatusBarColor
[](https://travis-ci.org/dk53/AutomaticStatusBarColor)
[](http://cocoapods.org/pods/AutomaticStatusBarColor)
[](http://cocoapods.org/pods/AutomaticStatusBarColor)
[](http://cocoapods.org/pods/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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
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 :
```swift
_ = 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*
```swift
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.
```swift
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, victor.carmouze@gmail.com
## License
AutomaticStatusBarColor is available under the MIT license. See the LICENSE file for more info.