Also trying to add the ability to detect a video and download it to the application in short a web-based app used for download any kind of video and has the ability to store
Use URL and URLRequest instead NSURL and NSURLRequest in Swift.
URL
URLRequest
NSURL
NSURLRequest
let url = URL.init(string: "https://www.google.com") let request = URLRequest.init(url: url!) Webview.loadRequest(request)
For Reference you can refer : Reference