Potential overridden instance method ‘evaluateJavaScript(_:completionHandler:)’ here (WebKit.WKWebView)

To resolve the “Potential overridden instance method ‘evaluateJavaScript(_:completionHandler:)’ in WebKit.WKWebView” issue, locate the affected file and comment out the conflicting method.

  ///COMMENT IT
//    public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) -> Void)? = nil) {
//        if let applePayAPIEnabled = options?.applePayAPIEnabled, applePayAPIEnabled {
//            if let completionHandler = completionHandler {
//                completionHandler(nil, nil)
//            }
//            return
//        }
//        super.evaluateJavaScript(javaScriptString, completionHandler: completionHandler)
//    }
    
    @available(iOS 14.0, *)

Other Article:

Leave a Reply

Your email address will not be published. Required fields are marked *

web_horizontal
About Us ♢ Disclaimer ♢ Privacy Policy ♢ Terms & Conditions ♢ Contact Us

Copyright © 2023 ResearchThinker.com. All rights reserved.