Hi, I'm trying to build an app that will display my website.
After adding the required code I get the error "Cannot find 'WebKit' in scope" I am attaching the code and the pictures.
Thanks!
```import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {
var webView: WKWebView!
override func loadView() {
let webConfiguration = WKWebViewConfiguration()
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.uiDelegate = self
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
let myURL = URL(string:"https://www.apple.com")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest)
}
}
@main
struct the_new_noariyaApp: App {
var body: some Scene {
WindowGroup {
WebKit()
}
}
}
Pictures: