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 NSWindow is visible.
webView.layer?.backgroundColor = NSColor.clearColor().CGColor;
It was not supported, then they fixed it:
The way to make it transparent is to:
myWebView.opaque = false