02How to get last string component from URL NSURL in Swift

suggest change

Swift 3.0

let url = URL(string: "http://google.com/lastPath")
let lastPath = url?.lastPathComponent

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


NSURL:
*02How to get last string component from URL NSURL in Swift

Table Of Contents
79NSURL
157MVVM