path
The path component of the URL if the URL conforms to RFC 3986; otherwise, an empty string.
Declaration
var path: String { get }Return Value
The path, or an empty string if the URL has an empty path.
Discussion
New code should use path(percentEncoded:) instead of this property.