Created
March 3, 2018 07:59
-
-
Save soapyigu/b4a41fe74e2b2fbbb7d8cb4b68302eba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let webView = UIWebView(frame: view.bounds) | |
view.addSubview(webView) | |
if let filePath = Bundle.main.path(forResource: "hack", ofType: "html") { | |
webView.loadRequest(URLRequest(url: URL(fileURLWithPath: filePath))) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hanifa.lapendos