Loading Microsoft Office documents in WKWebView
问题 I have been using UIWebView to display Microsoft Office documents (Word, PowerPoint, Excel) in my application for a while but Apple has recently deprecated the UIWebView class. I am trying to switch to WKWebView but Word, Excel, and Powerpoint documents are not rendering properly in WKWebView. Using UIWebView to display an Excel document (worked great): let data: Data //data is assigned bytes of Excel file let webView = UIWebView() webView.load(data, mimeType: "application/vnd.openxmlformats