SyntaxFix
Write A Post
Hire A Developer
Questions
For Swift 3 and Swift 4:
let htmlFile = Bundle.main.path(forResource: "name_resource", ofType: "html") let html = try! String(contentsOfFile: htmlFile!, encoding: String.Encoding.utf8) self.webView.loadHTMLString(html, baseURL: nil)