WKWebView’s createWebArchiveData method should invoke the completion handler with a Non-NULL Data which would contain the web-archive data of the web-page, or, a Non-NULL error if any error occurs.
But instead, the method calls the completion handler with a NULL data and a NULL error.
Other observations:
But instead, the method calls the completion handler with a NULL data and a NULL error.
Other observations:
In Swift, WKWebView’s createWebArchiveData method does return a valid result and the result.get() call does return a valid data. But passing this data to an UIActivityViewController as an Activity Item does not recognize the web-archive data.
WKWebView’s createPDFWithConfiguration method works as expected.