Latest 1.0.1
Homepage https://github.com/vdka/Notify
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

Notify

Carthage compatible
CI Status

Notify allows you to present notifications to your users with a simple interface.

Hello

Notify(title: "Hello world!").present()

Customization

init(title: String, backgroundColor: UIColor = .orangeColor(), titleColor: UIColor = Notify.currentStatusBarTextColor, font: UIFont = .boldSystemFontOfSize(12))
func present(dismiss dismiss: Dismissal = .After(2.0), completion: (() -> Void)? = nil)
enum Dismissal {
  case After(NSTimeInterval)
  case OnTap
}

Recommended Extension

In order to match the current status bar Notify calls preferredStatusBarStyle() & preferredStatusBarHidden() on the keyWindow of your apps rootViewController.

If your application’s rootViewController is typically a UINavigationController or subclass thereof, then without this extension it will be the one to decide the visuals of your status bar.

extension UINavigationController {
  public override func preferredStatusBarStyle() -> UIStatusBarStyle {
    return topViewController?.preferredStatusBarStyle() ?? .Default
  }

  public override func prefersStatusBarHidden() -> Bool {
    return topViewController?.prefersStatusBarHidden() ?? false
  }
}

Latest podspec

{
    "name": "TPRNotify",
    "summary": "Notify makes presenting notification to users simple!",
    "version": "1.0.1",
    "homepage": "https://github.com/vdka/Notify",
    "license": "MIT",
    "authors": {
        "Ethan Jackwitz": "[email protected]"
    },
    "source": {
        "git": "https://github.com/vdka/Notify.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Source/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This