AnyDestination

public protocol AnyDestination

All destinations inherits from AnyDestination protocol. Use Destination protocol instead.

  • Resolves destination.

    Default Implementation

    Resolves destination.

    Declaration

    Swift

    static func resolve(parameters: [String: Any]?, destination: @escaping (UIViewController, Any?) -> Void, failure: @escaping (Error?) -> Void)

    Parameters

    parameters

    Parameters extracted from route’s uri.

    destination

    Call this block when resolved and pass viewController and optional data.

    failure

    Call this block and pass optional error to cancel routing.