Contents

lastPathComponent

The last path component of the URL, or an empty string if the path is an empty string.

Declaration

var lastPathComponent: String { get }

See Also

Accessing the parts of a URL