iboutlet progressview not detected in observevalue
class ViewController: UIViewController {
private lazy var webView = WKWebView()
private var observation: NSKeyValueObservation?
override func viewDidLoad() {
super.viewDidLoad()
observation = webView.observe(\WKWebView.estimatedProgress, options: .new) { _, change in
print("Loaded: \(change)")
}
}
deinit {
self.observation = nil
}
}