ContainerStepChainAssembly
@MainActor
public struct ContainerStepChainAssembly<AcceptableContainer, ViewController, Context> where AcceptableContainer : ContainerViewController, ViewController : UIViewController
Helper class to build a chain of steps. Can not be used directly.
-
Adds a single step to the chain
Declaration
Swift
@MainActor public func from(_ step: ActionToStepIntegrator<AcceptableContainer, Context>) -> ActionConnectingAssembly<ViewController, Context>Parameters
previousStepThe instance of
StepWithActionAssemblable -
Adds a
DestinationStepto the chain. This step will be the last one in the chain.Declaration
Swift
@MainActor public func from(_ step: DestinationStep<AcceptableContainer, Context>) -> LastStepInChainAssembly<ViewController, Context>Parameters
previousStepThe instance of
DestinationStep -
Assembles all the provided settings.
Declaration
Swift
@MainActor public func assemble(from step: DestinationStep<AcceptableContainer, Context>) -> DestinationStep<ViewController, Context>Parameters
stepAn instance of
DestinationStepto build a current stack from.Return Value
An instance of
DestinationStepwith all the provided settings inside.