after upgraded to iOS13 my coding to open PDF in WKWebView is not worked any more. Does anyone has the same issue?
func webView(_ webView: WKWebView, createWebViewWith configuration: WKWebViewConfiguration, for navigationAction: WKNavigationAction, windowFeatures: WKWindowFeatures) -> WKWebView? {
let screenSize: CGRect = UIScreen.main.bounds
popupWebView = WKWebView(frame: CGRect(x: 0, y: 44, width: screenSize.width, height: screenSize.height - 44), configuration: configuration)
popupWebView!.autoresizingMask = [.flexibleWidth, .flexibleHeight]
popupWebView!.navigationDelegate = self
popupWebView!.uiDelegate = self
view.addSubview(popupWebView!)
self.setNavigationBar()
return popupWebView!
}