URL
extension URL
-
Parses and constructs URLs according to RFC 3986.
Declaration
Swift
public static func from(string: String, relativeTo url: URL? = nil, encodingInvalidCharacters: Bool = false) -> URL?
Parameters
string
A URL location.
relativeTo
A URL that provides a base location that the string extends.