DestinationInterfaceState

@MainActor
public final class DestinationInterfaceState<Destination> : DestinationStateable where Destination : Destinationable

Manages state for a Destination’s interface and holds a reference to it.

  • Declaration

    Swift

    public typealias StateModel = DefaultDestinationState<Destination>
  • The Destination which events are sent to.

    Declaration

    Swift

    @MainActor
    public var destination: Destination { get set }
  • The state model used with this Destination’s interface. It holds the interface’s state, along with handling business logic and interactor requests and responses.

    Declaration

    Swift

    @MainActor
    public var stateModel: StateModel { get set }
  • The initializer.

    Declaration

    Swift

    @MainActor
    public init(destination: Destination, state: StateModel? = nil)

    Parameters

    destination

    The Destination associated with this state model.