Latest 0.1.0
Homepage https://github.com/fortify-communications/EventManager
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Example

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

Inside AppDelegate.swift

let Events = EventManager()

Then add the following inside your view controllers ViewDidLoad or any other init function

Events.listenTo(eventName: "synchronizeAccountDataEvent", action: self.synchronizeAccountData)

After you can push to the controller using this:

Events.trigger(eventName: "synchronizeAccountDataEvent")

Inside the listener function then:

    /// Photo uploaded
    func synchronizeAccountData (information:Any?)
    {
        if let mongoId = information as? String
        {
            print("Uploaded account id: " + mongoId)
        }
    }

Requirements

Installation

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

pod "EventManager"

Author

Fortify Communications Inc, [email protected]

License

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

Latest podspec

{
    "name": "EventManager",
    "version": "0.1.0",
    "summary": "Event notifications for iOS swift",
    "description": "This library is used to simplify event notifications in iOS swift",
    "homepage": "https://github.com/fortify-communications/EventManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Fortify Communications": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fortify-communications/EventManager.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/fortifymobile",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "EventManager/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This