RouteScope
public enum RouteScope : Hashable, CustomDebugStringConvertible
A type representing a single URL scope.
URL scopes can be for application custom schemes e.g. x-hobson://something, or universal linking / associated domains,
of the form https://hobsonapp.com/something. The scope is just the context
part, e.g. x-hobson
or hobsonapp.com
-
Indicates the route applies to any and all custom URL schemes the app has declared in Info.plist
Declaration
Swift
case appAny
-
Indicates the route applies to a specific custom scheme declared in Info.plist
Declaration
Swift
case app(scheme: String)
-
Indicates the route applies to any and all universal domains declared on your app
Declaration
Swift
case universalAny
-
Indicates the route applies to a specific universal domains declared on your app
Declaration
Swift
case universal(domain: String)
-
- return:
true
if this route scope is for any kind of universal domain link
Declaration
Swift
public var isUniversal: Bool { get }
- return:
-
- return:
true
if this route scope is for any kind of custom URL scheme
Declaration
Swift
public var isApp: Bool { get }
- return:
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
-
Declaration
Swift
public static func == (lhs: RouteScope, rhs: RouteScope) -> Bool
-
Declaration
Swift
public var debugDescription: String { get }