Context

public class Context<ViewControllerType: UIViewController>

Destination context.

  • Parameters extracted from route’s uri.

    Declaration

    Swift

    public let parameters: [String: Any]?
  • Proceeds with navigation.

    Declaration

    Swift

    @discardableResult public func complete(viewController: ViewControllerType = .init()) -> ViewControllerType

    Parameters

    viewController

    UIViewController instance to navigate to.

    Return Value

    UIViewController instance.

  • Cancels navigation.

    Declaration

    Swift

    public func cancel(error: Error = NavigationError.unknown)

    Parameters

    error

    Error instance.

  • Proceeds with navigation.

    Declaration

    Swift

    @discardableResult public func complete(viewController: ViewControllerType = .init(), data: ViewControllerType.DataType? = nil) -> ViewControllerType

    Parameters

    viewController

    UIViewController instance to navigate to.

    data

    Data to pass to view controller.

    Return Value

    UIViewController instance.

  • Cancels navigation.

    Declaration

    Swift

    @discardableResult public func complete(data: ViewControllerType.DataType?) -> ViewControllerType

    Parameters

    data

    Data to pass to view controller.

    Return Value

    UIViewController instance.