Event

public protocol Event

Since we cannot extend or inherit Enums, this protocol serves as the base for all events. The State reducer State(S) * Event(E) → Action (A), State (S’) accepts this Event and emits a Command to act on or state change.

  • event() Default implementation

    Self as Event

    Default Implementation

    Self as Event

    Declaration

    Swift

    func event() -> Self