This one is driving me crazy early this morning. I want to load some local html into a web view:
class PrivacyController: UIViewController { @IBOutlet w
Swift 3 with 3 lines :)
if let url = Bundle.main.url(forResource: "privacy", withExtension: "html") { webview.loadRequest(URLRequest(url: url)) }