Initializer

init()

Initializes a URL components object with nil for every component.

Declaration

init()

Return Value

Returns the initialized URL components object, or nil if an error occurs.

See Also

Creating URL Components

init?(string: String)

Initializes a URL components object by parsing a URL in string form.

init?(url: URL, resolvingAgainstBaseURL: Bool)

Initializes a URL components object by parsing the URL from an NSURL object.