Cannot find type ‘WKWebView’ in scope

      No Comments on Cannot find type ‘WKWebView’ in scope

While creating @IBOutlet for WKWebView you might have come across an error message in Xcode

Cannot find type 'WKWebView' in scope

This can be simply resolved by importing WebKit.

The resulting code will look like

//
//  ViewController.swift
//  TestFrame
//
//  Created by Amarendra Singh on 22/03/21.
//

import UIKit
import WebKit
class ViewController: UIViewController {
    @IBOutlet weak var webView: WKWebView!
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }


}

Cheers !!!

A pat on the back !!