StepChainAssembly
public struct StepChainAssembly<ViewController, Context> where 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<some UIViewController, 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<some UIViewController, Context>) -> LastStepInChainAssembly<ViewController, Context>
Parameters
previousStep
The instance of
DestinationStep
-
Assembles all the provided settings.
Declaration
Swift
public func assemble(from step: DestinationStep<some UIViewController, Context>) -> DestinationStep<ViewController, Context>
Parameters
step
An instance of
DestinationStep
to start to build a current step from.Return Value
An instance of
DestinationStep
with all the provided settings inside.