ContainerStepChainAssembly
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
public func from(_ step: ActionToStepIntegrator<AcceptableContainer, Context>) -> ActionConnectingAssembly<ViewController, Context>
Parameters
previousStep
The instance of
StepWithActionAssemblable
-
Adds a
DestinationStep
to the chain. This step will be the last one in the chain.Declaration
Swift
public func from(_ step: DestinationStep<AcceptableContainer, Context>) -> LastStepInChainAssembly<ViewController, Context>
Parameters
previousStep
The instance of
DestinationStep
-
Assembles all the provided settings.
Declaration
Swift
public func assemble(from step: DestinationStep<AcceptableContainer, Context>) -> DestinationStep<ViewController, Context>
Parameters
step
An instance of
DestinationStep
to build a current stack from.Return Value
An instance of
DestinationStep
with all the provided settings inside.