Protocols
The following protocols are available globally.
-
This protocol makes any entity observable, by giving it the infrastructure to subscribe and track observers. It’s up to the implementor to actually use this to send messages.
Observables have to be classes. Observers don’t need to be classes.
There are two required components: a UUID, which needs to remain constant during the lifetime of the instance, and an Array of observers.
See moreDeclaration
Swift
public protocol RVS_GeneralObservableProtocol : AnyObject
-
This protocol allows any entity to become an observer. The only required component is a UUID.
See moreDeclaration
Swift
public protocol RVS_GeneralObserverProtocol
-
This is a class protocol, so we can mutate the properties in the protocol extension, and we won’t have the issue of unlinked references.
See moreDeclaration
Swift
public protocol RVS_GeneralObserverSubTrackerProtocol : AnyObject, RVS_GeneralObserverProtocol