Route

  • Adds metadata to a route that describes in user-visible terms where the route takes the user. String takes the form of completing “Logging in will let you see …”

    Declaration

    Swift

    @discardableResult
    public func destination(_ string: String) -> Route
  • Adds metadata to a route that marks it as being used during the preregistration flow. Instead of special-casing the middleware these methods use, it’s easier to decorate their routes.

    Declaration

    Swift

    @discardableResult
    public func setUsedForPreregistration() -> Route
  • Declaration

    Swift

    public func usedForPreregistration() -> Bool