I have the following code:
UIWebView.loadRequest(NSURLRequest(URL: NSURL(string: \"google.ca\")))
I am getting the following error:
Swift 3 doesn't use NS prefix anymore on URL and URLRequest, so the updated code would be:
let url = URL(string: "your_url_here") yourWebView.loadRequest(URLRequest(url: url!))