WKWebView supported document types

WKWebView (and its predecessor UIWebView) can display document types other than HTML (such as PDF, RTF, JPEG, etc).


I would like to know precisely what document types WKWebView officially supports for the current and previous major versions of iOS (so that I can advertise this to end users of my app and know that support for the formats isn't going to disappear without notice).


The document types UIWebView supports are officially documented at https://developer.apple.com/library/content/qa/qa1630/_index.html , but there doesn't seem to be a corresponding document for WKWebView.


Does anybody know where I can find this information?


(I have submitted a TSI regarding this but have been waiting for nearly a month to get an answer. The Apple Developer Senior Advisor I just followed up with regarding the delay doesn't know and can't find out how much longer I'll need to wait, hence this post...)


Thanks in advance.

Replies

UIWebView and WkWebView are basically bags on the side of WebKit, which is not controlled by Apple, rather Webkit.org.


Unless you can contact someone there with different info, I'd take the supported formats assigned to UIWebView by Apple and be happy.


Otherwise, and as always, feel free to file bugs against the docs for things like this you'd prefer made clearer, etc.


Good luck.

I just received this response to my TSI:


Thanks for your patience while I ran this to ground. Here is what I’ve been able to ascertain:

1. All Microsoft Documents are supported.

2. All iWork documents are supported.

3. If UIWebView would render a document type then WKWebView will as well.

If this is not your experience, please file a bug here:

<http://bugreporter.apple.com/>