ActionBranchPathConfiguration
@MainActor
public struct ActionBranchPathConfiguration<InteractorType, ContentType> where InteractorType : InteractorTypeable, ContentType : ContentTypeable
A configuration object that pairs a ActionBranchCondition with an action configuration and an optional transformer, representing one path of an ActionBranchConfiguration.
Use ActionBranchConfiguration‘s .branch(when:action:transformer:) builder method to add these to a branch configuration rather than constructing them directly.
-
The condition evaluated at runtime to determine whether this branch path should be selected.
Declaration
Swift
@MainActor public let condition: any BranchConditionable<ContentType> -
The configuration for the action to build and run when this branc path is selected.
Declaration
Swift
@MainActor public let actionConfig: any ActionConfiguring<InteractorType, ContentType> -
An optional transformer applied to the branch path’s output before forwarding it downstream.
Declaration
Swift
@MainActor public let transformer: (any ContentTransformable<ContentType, ContentType>)? -
Undocumented
Declaration
Swift
@MainActor public init(condition: any BranchConditionable<ContentType>, actionConfig: any ActionConfiguring<InteractorType, ContentType>, transformer: (any ContentTransformable<ContentType, ContentType>)? = nil)
View on GitHub