SwiftEvents is a lightweight, pure-Swift alternative to Cocoa KVO and NotificationCenter.
One of the bright examples of using SwiftEvents is MVVM, as it provides an easier way for the View to react to changes in the ViewModel.
In comparison with Cocoa mechanisms, SwiftEvents:
Uses native Swift syntax: closures, generics and didSet property observers
Provides the ability to observe properties in a class or a struct
Provides the ability to observe all of the properties of an instance with minimal effort
Easier to test, maintain and debug
To install SwiftEvents using CocoaPods, add it to your
Swift Package Manager
To install SwiftEvents using the Swift Package Manager, add it to your
dependencies: [ .Package(url: "https://github.com/denissimon/SwiftEvents.git", majorVersion: 0) ]
If you prefer not to use dependency managers, you can integrate SwiftEvents into your project manually.
This section is under development.
Licensed under the MIT license