HasEvents
public protocol HasEvents : AnyObject
Protocol to be used in any Class that needs to emit and intercept events
-
Emits an Event that will bubble up the UIResponder chain until reaches the first Coordinator, where it will continue to bubble up
Declaration
Swift
func emitEvent(_ event: CoordinateEvents)Parameters
eventThe event to emit
-
Intercepts events and react to them. Return true to stop the event propagation, return false to continue event propagation
If you override this method, you can cast the event parameter to the desired enum you wish to compare.
Declaration
Swift
func interceptEvent(_ event: CoordinateEvents) -> BoolParameters
eventThe event to intercept
View on GitHub
Install in Dash
HasEvents Protocol Reference