CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

StatusBarKit 0.1.0

StatusBarKit 0.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2015
SPMSupports SPM

Maintained by Ryosuke Hiramatsu.



StatusBarKit

Customize your status bar like iOS 9.

「◀︎Back to Safari」 and 「apple.com▶︎」

Usage

override func viewDidLoad() {
    super.viewDidLoad()

    let parameter = StatusViewParameter()
    parameter.leftItem = StatusViewItem(title: "◀︎Back to Safari") {
        UIApplication.sharedApplication().openURL(NSURL(string: "http://yahoo.co.jp")!)
    }
    parameter.rightItem = StatusViewItem(title: "apple.com▶︎") {
        UIApplication.sharedApplication().openURL(NSURL(string: "http://apple.com")!)
    }
    parameter.backgroundColor = navigationController?.navigationBar.barTintColor
    parameter.textColor = UIColor.whiteColor()

    StatusViewManager.show(parameter)
}

Installation

Manually

Just add the Pod/Classes folder to your project.

Requirements

  • iOS 8 and later

License

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