relativeString

Returns the relative portion of a URL.

iOS
8.0+
macOS
10.10+
tvOS
9.0+
watchOS
2.0+
var relativeString: String { get }

If baseURL is nil, or if the receiver is itself absolute, this is the same as absoluteString.