Skip to content

DeeplinkComponent

ohitsdaniel edited this page Apr 29, 2021 · 3 revisions

DeeplinkComponent

First class representation of a URL path component

public struct DeeplinkComponent: Hashable 

Example

// scheme://name?flag&value=123
DeeplinkComponent(
   name: "name",
   arguments: [
     "flag": .flag,
     "value": "123"
   ]
)

Inheritance

Hashable

Initializers

init?(url:)

Initialise a deeplink component from a URL

public init?(url: URL) 

Example

// scheme://name?flag&value=123
DeeplinkComponent(
   name: "name",
   arguments: [
     "flag": .flag,
     "value": "123"
   ]
)

init(name:arguments:)

public init(name: String, arguments: [String: Argument]? = nil) 

Properties

name

public let name: String

arguments

public let arguments: [String: Argument]?
Clone this wiki locally