Hi Team, Im still see the issue using :
mport UIKit
import WebKit
class ViewController: UIViewController, WKNavigationDelegate, WKUIDelegate {
@IBOutlet weak var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
webView.configuration.defaultWebpagePreferences.allowsContentJavaScript = true
webView.configuration.allowsInlineMediaPlayback = true
webView.configuration.allowsAirPlayForMediaPlayback = true
webView.configuration.allowsPictureInPictureMediaPlayback = true
webView.allowsBackForwardNavigationGestures = true
webView.allowsLinkPreview = true
webView.uiDelegate = self
webView.navigationDelegate = self
let myURL = URL(string: "https://ac-dev.oss-cn-hangzhou.aliyuncs.com/test-2022-py.html")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest)
}
}
Any idea what we missed?
Thanks in advance