StepAssembly

@MainActor
public final class StepAssembly<F: Finder, FC: AbstractFactory>: GenericStepAssembly<F.ViewController, FC.Context>
    where
    F.ViewController == FC.ViewController, F.Context == FC.Context

Builds a DestinationStep instance with the correct settings into a chain of steps.

NB

Both Finder and Factory instances should deal with the same type of UIViewController and Context instances.

Usage

let productScreen = StepAssembly(finder: ProductViewControllerFinder(), factory: ProductViewControllerFactory())
        .adding(LoginInterceptor())
        .adding(ProductViewControllerContextTask())
        .adding(ProductViewControllerPostTask(analyticsManager: AnalyticsManager.sharedInstance))
        .using(.push)
        .from(.navigationController)
        .using(.present)
        .from(.current)
        .assemble()

Available where FC: Factory

Available where FC: ContainerFactory

Available where FC: Factory

Available where FC: ContainerFactory

Available where FC: Factory

Available where FC: ContainerFactory

Available where FC: Factory

Available where FC: ContainerFactory

Available where FC: Factory

Available where FC: ContainerFactory

Available where FC: Factory & NilEntity

Available where FC: ContainerFactory & NilEntity