GenericStepAssembly
@MainActor
public class GenericStepAssembly<VC, C> : InterceptableStepAssembling where VC : UIViewController
Abstract builder class that helps to create a DestinationStep instance with correct settings.
-
Declaration
Swift
public typealias ViewController = VC -
Declaration
Swift
public typealias Context = C
-
Adds
RoutingInterceptorinstance. This action does not contain type safety checks to avoid complications.Declaration
Swift
@MainActor public final func adding<RI>(_ interceptor: RI) -> Self where C == RI.Context, RI : RoutingInterceptorParameters
interceptorThe
RoutingInterceptorinstance to be executed byRouterbefore the navigation process to this step. -
Adds
ContextTaskinstanceDeclaration
Swift
@MainActor public final func adding<CT: ContextTask>(_ contextTask: CT) -> Self where CT.ViewController == ViewController, CT.Context == ContextParameters
contextTaskThe
ContextTaskinstance to be applied by aRouterimmediately after it will find or createUIViewController. -
Adds
PostRoutingTaskinstance. This action does not contain type safety checks to avoid complications.Declaration
Swift
@MainActor public final func adding<PT>(_ postTask: PT) -> Self where C == PT.Context, PT : PostRoutingTaskParameters
postTaskThe
PostRoutingTaskinstance to be executed by aRouterafter the navigation process.