DestinationStateable
@MainActor
public protocol DestinationStateable<Destination, StateModel> : AnyObject
This protocol represents an interface’s state object which holds a reference to its associated Destination.
-
The Destination class type associated with this state’s Destination.
Declaration
Swift
associatedtype Destination : Destinationable -
The state model object type to be used with this Destination’s interface.
Declaration
Swift
associatedtype StateModel -
A reference to the Destination object.
Declaration
Swift
@MainActor 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 var stateModel: StateModel { get set }
View on GitHub