To run the example project, clone the repo, and run pod install
from the Example directory first.
AGSwiftNotif is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AGSwiftNotif"
import AGSwiftNotif
let notification = AGSwiftNotif()
notification.postNotification("test")
notification.registerObserver("test"){(notification:NSNotification!)->Void in
// RECEIVE NOTIFICATION
}
notification.registerObserver(["test","notifcation"]){(notification:NSNotification!)->Void in
//CALLED WHEN ”test” or ”notification” is posted
}
antoinegarcia, antoine.garcia@epitech.eu
AGSwiftNotif is available under the MIT license. See the LICENSE file for more info.