On my request, the university purchased the iOS apprentice book this July 2018.
I found that the book still did not update or work on the deprecations. As the author in the book mentioned they are updating in the october 2017 web-view-deprecated
Here is my solution to the issue
//
// AboutViewController.swift
// BullsEye
//
// Created by Akarsh Seggemu on 01.08.18.
// Copyright © 2018 Akarsh Seggemu. All rights reserved.
//import UIKit
import WebKitclass AboutViewController: UIViewController {
@IBAction func close() {
dismiss(animated: true, completion: nil)
}@IBOutlet weak var webView: WKWebView! override func viewDidLoad() { super.viewDidLoad() let url = Bundle.main.path(forResource: "BullsEye", ofType: "html") let htmlUrl = URL(fileURLWithPath: url!, isDirectory: false) webView.loadFileURL(htmlUrl, allowingReadAccessTo: htmlUrl) }
}