I am building a Mac application using Swift. Therefor, I want to make a WKWebView transparent, so it shows the text of the loaded HTML, but the background of my underlaying NSWi
Code below works for me perfectly, also color is set to clearColor by default.
[wkWebView setValue:YES forKey:@"drawsTransparentBackground"];