Upvote:3

 let bundle = NSBundle.mainBundle()
 var url = bundle.URLForResource("yourHTML", withExtension: "html");
 var request = NSURLRequest(URL: url!);
 webContent.loadRequest(request)

More Answer related to the Same Query

Upvote:1

let url = NSBundle.mainBundle().URLForResource("test", withExtension: "html")

Upvote:1

self.webView!.loadRequest(NSURLRequest(URL:NSURL(string:"https://www.google.com")))

More Answer related to the Same Query

Upvote:1

Folder Project/app/
Folder Project/app/AppDelaget.swift
Folder Project/app/ViewController.swift
Folder Project/app/main.storybord
Folder Project/app/index.html

Credit Goes to: stackoverflow.com

Related question with same questions but different answers