iOS Question WKWebview Background color?

ilan

Expert
Licensed User
is it possible to change the WKWebview Background color from white to black?
it always appears white even i add this:

B4X:
wkweb.BaseView.Color = Colors.Black
i also tried this (according to this site): https://stackoverflow.com/questions/27655930/how-can-i-give-wkwebview-a-colored-background/33569213

B4X:
Dim no As NativeObject = wkweb
no.SetField("opaque", False)
no.SetField("backgroundColor", no.ColorToUIColor(Colors.Black))
no.GetField("scrollView").SetField("backgroundColor", no.ColorToUIColor(Colors.Black))
but still white :(
 
Last edited:
Top