StepAssembly

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(UINavigationController.push())
        .from(NavigationControllerStep())
        .using(GeneralAction.presentModally())
        .from(GeneralStep.current())
        .assemble()

Available where FC: Factory

Available where FC: ContainerFactory

Available where FC: Factory & NilEntity

Available where FC: ContainerFactory & NilEntity