Answers for "iboutlet progressview not detected in observevalue"

0

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
    }
}
Posted by: Guest on July-25-2021

Code answers related to "iboutlet progressview not detected in observevalue"

Browse Popular Code Answers by Language