Skip to content

Instance Property

relativePath

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
The relative path of the URL if the URL conforms to RFC 3986, otherwise nil.
var relativePath: String { get }

Return Value

The relative path, or an empty string if the URL has an empty path.

Discussion

This is the same as path if baseURL is nil.