Latest 0.7.0
Homepage https://github.com/michaljach/StatusBarNotifications
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

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.

Latest podspec

{
    "name": "StatusBarNotifications",
    "version": "0.7.0",
    "summary": "Display notifications in iOS Status Bar.",
    "description": "This Pod allow users to display notification message inside iOS Status Bar. You can customize background color, text color, text font and even size of it.",
    "homepage": "https://github.com/michaljach/StatusBarNotifications",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "michaljach": "[email protected]"
    },
    "source": {
        "git": "https://github.com/michaljach/StatusBarNotifications.git",
        "tag": "0.7.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "StatusBarNotifications/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This