Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo.playground
Sources
Tests
TypedNotification.xcodeproj
TypedNotification.xcworkspace
.gitignore
LICENSE
Package.swift
README.md

README.md

TypedNotification

TypedNotification provides a set of protocols that define a stronger type system for notifications in Swift. The protocols help eliminate bugs arising from the stringly typed Foundation notification APIs and provide type safety and self-documentation for data attached to notifications. An additional lightweight class that automatically manages observer removal helps reduce run time errors.

Installation

TypedNotification can be installed using the Swift Package Manager or Carthage.

Usage

This repository contains a small demo playground (Demo.playground) that explains how to use TypedNotification by example. There's also a blog post which goes into some more detail on the implementation of TypedNotification.

License

MIT