Swift webview HTML URL


Please give me a solution for how to load the .html url in webview.


Follow this tutorial from Chris Ching. https://www.youtube.com/watch?v=0yystgocrw8

This is lesson 7 in the YouTube App build and covers how to pass a url to a Detail ViewController where the URL is opened in a WebView.

The url was coming as .html extension. when loading in webview its not displying eg: url is like this www.google.html

Please suggest solution.

It’s probably not displaying because that’s not a legitimate URL. .html is not a valid top-level domain.

Thankyou for your reply.

Thankyou for ypur reply chris.