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.
-
Creates an instance of the
ActionToStepIntegrator
describing a container view controller.Declaration
Swift
public init(finder: F, factory: FC)
Parameters
finder
The
UIViewController
Finder
.factory
The
UIViewController
ContainerFactory
. -
Adapts context and view controller type dependencies.
NB: Developer guaranties that this types will compliment in runtime.
Declaration
Swift
public final func unsafelyRewrapped<VC, C>() -> ActionToStepIntegrator<VC, C> where VC : UIViewController
-
Allows to avoid container view controller check.
NB: Developer guaranties that it will be there in the runtime.
Declaration
Swift
public final func expectingContainer<VC>() -> ActionToStepIntegrator<VC, F.Context> where VC : ContainerViewController
-
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>