TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | May 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Michal Jach.
iOS Status Bar notifications written in Swift 3. Easily change appearance and text in UIStatusBar.
To run the example project, clone the repo, and run pod install
from the Example directory first.
StatusBarNotifications is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "StatusBarNotifications"
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)
.fade
.slideFromTop
.slideFromBottom
.slideFromLeft
Michal Jach, [email protected]
StatusBarNotifications is available under the MIT license. See the LICENSE file for more info.