InteractorConfiguration
@MainActor
public struct InteractorConfiguration<InteractorType, Interactor> : InteractorConfiguring where InteractorType : InteractorTypeable, Interactor : AbstractInteractable
This model is used to configure a specific action an Interactor should take.
-
Declaration
Swift
public typealias ActionType = Interactor.Request.ActionType -
Declaration
Swift
@MainActor public let interactorType: InteractorType -
Declaration
Swift
@MainActor public let actionType: ActionType -
Declaration
Swift
@MainActor public let assistantType: InteractorAssistantType -
The initializer.
Declaration
Swift
@MainActor public init(interactorType: InteractorType, actionType: ActionType, assistantType: InteractorAssistantType)Parameters
interactorTypeThe type of interactor.
actionTypeThe type of interactor request action.
-
Declaration
Swift
@MainActor public func assignInteractorAssistant<Destination>(destination: Destination, interactionType: Destination.UserInteractionType) where InteractorType == Destination.InteractorType, Destination : Destinationable
View on GitHub