Latest 1.0.1
Homepage https://github.com/antgar/AGSwiftNotif
License MIT
Platforms ios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod "AGSwiftNotif"

Usage

Post a notification

import AGSwiftNotif

let notification = AGSwiftNotif()
notification.postNotification("test")

Register for a notification

notification.registerObserver("test"){(notification:NSNotification!)->Void in
  // RECEIVE NOTIFICATION
}

Register for multiple notification

notification.registerObserver(["test","notifcation"]){(notification:NSNotification!)->Void in
  //CALLED WHEN ”test” or ”notification” is posted
}

Author

antoinegarcia, [email protected]

License

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

Latest podspec

{
    "name": "AGSwiftNotif",
    "version": "1.0.1",
    "summary": "Simple wrapper for NSNotificationCenter",
    "description": "This framework wrap the call to NSNotificationCenter with closure.",
    "homepage": "https://github.com/antgar/AGSwiftNotif",
    "license": "MIT",
    "authors": {
        "antoinegarcia": "[email protected]"
    },
    "source": {
        "git": "https://github.com/antgar/AGSwiftNotif.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This