I would like to render an html file (html string) to a png file (and save png to iCloud Drive).
I am using WKWebView() with WKNavigationDelegate to check whether web view didFinish loading.
WKWebView is working fine.
Once WKWebView loading didFinish I would like to render the view to an UIimage (and then save as png file) - and here I am currently struggling to generate UImage with
ImageRenderer(content: content)
Any Idea how to render the webView to png
OR
any another approach to render HTML to png?
Thanks a lot
Eric
5
0
2.6k