Make WKWebView invisible or tiny

I need the javascript capabilities that are not provided by JavaScriptCore like fetch and npm, but don't need any UI.

Is it possible to make it not visible or at least extremely tiny?

I've tried frame .zero and CGRect all zero but it's still fully visible.

Answered by dharric in 695974022

I just put a frame on the View

MyView() .frame(width: 0, height: 0)

Accepted Answer

I just put a frame on the View

MyView() .frame(width: 0, height: 0)

Make WKWebView invisible or tiny
 
 
Q