Rendering [WK]WebView offscreen

Hi developers,


Until High Sierra, I had been using WebView to render html offscreen with a CARenderer and it's been working exceptionally well. With HighSierra, that no longer works but I'm taking that as a sign from the Gods that I should swtich to WKWebView. Unfortunately, WKViewView does not render offscreen either. All I get out of CARenderer is a solid white image. Note that takeSnapshotWithConfiguration does work but I want to run at a steady 30fps and Im not confident takeSnapshotWithConfiguration would be the best route.


Ideally I'd stay with WebView but the documentation seems pretty direct about not using it anymore. That being said, I dont see it stated as deprecated. In the worst case scenario I'll switch to Chromium embedded, but ugh..


Any suggestions or comments would be appreciated...


Thank you

>I dont see it stated as deprecated


Not any longer, sure.


Deprecations are warnings that come with a shelf life - they aren't nailed up forever. UIWebView was deprecated w/iOS 8 - we're on iOS 11, so...ashes to ashes.


As for your off offscreen deal, you might want to visit webkit.org and see if anyone/thing there can help with it. Might need to file a request via the bug reporter in the mean time, to let your needs be heard, at least. And finally, since you have a code level issue, burning a ticket w/DTS via the Member Center could be worth it. Good luck.

Rendering [WK]WebView offscreen
 
 
Q