lastPathComponent
The last path component. (read-only)
Declaration
var lastPathComponent: String? { get }Discussion
This property contains the last path component, unescaped using the replacingPercentEscapes(using:) method. For example, in the URL file:///path/to/file, the last path component is file.