Swiftpack.co - Package - denissimon/SwiftEvents

SwiftEvents

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

Installation

CocoaPods

To install SwiftEvents using CocoaPods, add it to your Podfile:

pod 'SwiftEvents'

Swift Package Manager

To install SwiftEvents using the Swift Package Manager, add it to your Package.swift file:

dependencies: [
    .Package(url: "https://github.com/denissimon/SwiftEvents.git", majorVersion: 0)
]

Manual

If you prefer not to use dependency managers, you can integrate SwiftEvents into your project manually.

Usage

This section is under development.

License

Licensed under the MIT license

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

0.1.1 - May 31, 2019

0.1.0 - May 30, 2019