This repository has been archived by the owner on Jul 12, 2019. It is now read-only.
Releases: jessesquires/JSQNotificationObserverKit
Releases · jessesquires/JSQNotificationObserverKit
5.0.1
5.0.0
This release closes the 5.0.0 milestone.
Breaking changes ⚠️
- Updated to Swift 2.2 (#35). Swift 2.2 and above is now required.
- The
notification:
parameter name has been removed fromNotificationObserver
initializers to reduce verbosity (#31). Example:
// OLD
let observer = NotificationObserver(notification: note) { (value, sender) in
}
// NEW
let observer = NotificationObserver(note) { (value, sender) in
}
- Renamed
ValueSenderHandler
toValueSenderClosure
- Renamed
NotificationHandler
toNotificationClosure
New
4.0.0
This release closes the 4.0.0 milestone. 🎉
- The previously added
withSender()
function onNotification
has changed frommutating
to non-mutating and now returns a newNotification
instance. See discussion at #26. See the docs for details.
This is a minor, but breaking, change.
3.1.0
This release closes the 3.1.0 milestone. 🎉
New
- Support for Swift package manager 📦
Notification
now has awithSender()
function to add/remove a sender. (#22, Thanks @grosch! 👏)
This is valuable if you want to declare global notifications where the specific sender instance isn't available in the global scope. This function can be chained with post()
.
Example usage:
// in a view controller, for example
notification.withSender(self).post(value)
See the docs for details.
3.0.0
This release closes the 3.0.0 milestone.
New
Official support for OS X, tvOS, watchOS via CocoaPods. 🎉
Changes
The postNotification()
global function has moved to be a function on Notification
. Thanks @grosch!
See the updated docs for details.
2.0.0
This release closes the 2.0.0 milestone.
- Swift 2.0 🎉
- A few refinements
- More unit tests
- Updated docs
1.0.0
It's here! 🎉
Checkout the README
and documentation.