/emitter-kit

Type-safe event handling for Swift

Primary LanguageSwiftMIT LicenseMIT

emitter-kit

locked CocoaPods Compatible Carthage Compatible Platform

This library provides these 5 useful classes:

Event : A type-safe event emitter.

Signal : An event emitter that doesn't pass any data.

Listener : An event listener!

Notification : Backwards-compatibility with NSNotification.

Change : Key-value observation made easy.

Motivation

NSNotification & NSNotificationCenter are verbose and not type-safe.

This library aims to:

  • streamline your work with event emitters & listeners

  • be simple, but powerful