Protocols

The following protocols are available globally.

  • Defines the minimum requirements for describing a list of routes.

    Note

    Your Route enum should inherit from this protocol.
    enum MyRoutes: RouteType {
        case homePage
        case profilePage(profileID: Int)
        ...
    
    See more

    Declaration

    Swift

    public protocol RouteType : Equatable