Eventer is a tiny event post/subscribe library for iOS.
- iOS 8.0+
- Xcode 9.0+ with Swift 5.0+
Eventer
is available on CocoaPods:
use_frameworks!
pod 'Eventer'
You are welcome to fork and submit pull requests.
Eventer
is open-sourced software, licensed under the MIT
license.
Eventer.on(self, name: "EventName") { (notification) in
// ...
}
Eventer.onMainThread(self, name: "AnotherEventName") { (_) in
// ...
}
Eventer.post(EventName.didAppear.rawValue, on: .main)
Eventer.unregister(self)