StatusBarNotifications 0.7.0

StatusBarNotifications 0.7.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Michal Jach.



  • By
  • michaljach

StatusBarNotifications

iOS Status Bar notifications written in Swift 3. Easily change appearance and text in UIStatusBar.

Example

StatusBarNotifications

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • CocoaPods
  • iOS 8.3
  • Xcode

Installation

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

pod "StatusBarNotifications"

Usage

Firstly import StatusBarNotifications:

import StatusBarNotifications

Then simply call show method anywhere You want:

StatusBarNotifications.show(withText: "Hello from StatusBar!", animation: .slideFromTop)

You can set custom background color and text color for each notification:

StatusBarNotifications.show(withText: "Hello from StatusBar!", animation: .slideFromTop, backgroundColor: .red, textColor: .white)

Available animations

.fade
.slideFromTop
.slideFromBottom
.slideFromLeft

Author

Michal Jach, [email protected]

License

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