SingleContainerStep

public class SingleContainerStep<F: Finder, FC: ContainerFactory>: ActionToStepIntegrator<F.ViewController, F.Context>
    where
    F.ViewController == FC.ViewController, F.Context == FC.Context

A simple class that produces an intermediate ActionToStepIntegrator describing a container view controller.

Methods

Available where FC.Context == Any?

  • Allows to avoid container view controller check. This method is available only for the steps that are able to accept any type of context.

    NB: Developer guaranties that it will be there in the runtime.

    Declaration

    Swift

    final func expectingContainer<VC, C>() -> ActionToStepIntegrator<VC, C> where VC : ContainerViewController
  • Allows to compliment to the type check. A step that has context equal to Optional(Any) can be build with any type of context passed to the router.

    Declaration

    Swift

    final func adaptingContext<C>() -> ActionToStepIntegrator<F.ViewController, C>