Releases: ManueGE/Actions
Releases · ManueGE/Actions
3.0.0
2.2.0
2.2.0 (27 October 2016)
- New method to stop observing notifications in
NotificationServer:
stopObserver(_ observer: NSObject, name: NSNotification.Name? = nil, object: AnyObject? = nil)
This allows you stop observing a notification without storing the Action returned when an observation starts.
- New method to remove actions for a given gesture recognizer in
UIControl:
removeActions(for events: UIControlEvents)
This allows you cancel an action without storing the Action returned when it is added.
- Deprecated
UIControlremove(action:, forControlEvents)in favor ofremove(_:for:).
2.1.1
2.1.0
2.0.1
2.0.0
1.3.0
addObserver(to:object:action:)has been deprecated in favor ofobserve(name:object:action:).NSNotificationCenterobservations can be stopped by callingstopObserving(action).- New
NSNotificationCentermethod (add(observer:name:object:action:) to add actions binded to the lifetime of a given object.