Latest 0.1.1
Homepage https://github.com/denissimon/SwiftEvents
License MIT
Platforms ios 9.0, osx 10.10, watchos 3.0, tvos 10.0
Authors

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

Latest podspec

{
    "name": "SwiftEvents",
    "version": "0.1.1",
    "homepage": "https://github.com/denissimon/SwiftEvents",
    "authors": {
        "Denis Simon": "[email protected]"
    },
    "summary": "A lightweight, pure-Swift alternative to Cocoa KVO and NotificationCenter.",
    "description": "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.",
    "license": {
        "type": "MIT"
    },
    "source": {
        "git": "https://github.com/denissimon/SwiftEvents.git",
        "tag": "0.1.1"
    },
    "source_files": "Sources/**/*.swift",
    "swift_versions": "3.0",
    "platforms": {
        "ios": "9.0",
        "osx": "10.10",
        "watchos": "3.0",
        "tvos": "10.0"
    },
    "swift_version": "3.0"
}

Pin It on Pinterest

Share This