ActionToStepIntegrator
@MainActor
public class ActionToStepIntegrator<VC, C> : IntermediateDestinationStep, InterceptableStepAssembling where VC : UIViewController
Allows to add tasks to the step that is hidden in IntermediateDestinationStep
.
-
Declaration
Swift
public typealias ViewController = VC
-
Declaration
Swift
public typealias Context = C
-
Adds
RoutingInterceptor
instance. 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 : RoutingInterceptor
Parameters
interceptor
The
RoutingInterceptor
instance to be executed byRouter
before the navigation process to this step. -
Adds
ContextTask
instanceDeclaration
Swift
@MainActor public final func adding<CT: ContextTask>(_ contextTask: CT) -> Self where CT.ViewController == ViewController, CT.Context == Context
Parameters
contextTask
The
ContextTask
instance to be applied by aRouter
immediately after it will find or createUIViewController
. -
Adds
PostRoutingTask
instance. 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 : PostRoutingTask
Parameters
postTask
The
PostRoutingTask
instance to be executed by aRouter
after the navigation process.
-
Returns the root view controller of the key window.
Declaration
Swift
@MainActor static func root<NewContext>(windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider) -> DestinationStep<UIViewController, NewContext>
-
Returns the root view controller of the key window.
Declaration
Swift
@MainActor static var root: DestinationStep<UIViewController, C> { get }
-
Returns the topmost presented view controller.
Declaration
Swift
@MainActor static func current<NewContext>(windowProvider: WindowProvider = RouteComposerDefaults.shared.windowProvider) -> DestinationStep<UIViewController, NewContext>
-
Returns the topmost presented view controller.
Declaration
Swift
@MainActor static var current: DestinationStep<UIViewController, C> { get }
-
Returns the resulting view controller of the finder provided.
Declaration
Swift
@MainActor static func custom<F>(using finder: F) -> DestinationStep<F.ViewController, F.Context> where F : Finder
-
Default navigation container step
Declaration
Swift
@MainActor static var navigationController: NavigationControllerStep<UINavigationController, Context> { get }
-
Default split container step
Declaration
Swift
@MainActor static var splitViewController: SplitControllerStep<UISplitViewController, Context> { get }
-
Default tab bar container step
Declaration
Swift
@MainActor static var tabBarController: TabBarControllerStep<UITabBarController, Context> { get }