This file contains 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 WebKit | |
class ViewController: UIViewController { | |
// Connect the webView from the StoryBoard. | |
@IBOutlet weak var webView: WKWebView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Get the path of the index.html which is part of the Xcode project (resp. in the main bundle). | |
guard let htmlPath = Bundle.main.path(forResource: "index", ofType: "html") else { |