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
Use this in macOS 10.12 and higher:
webView.setValue(false, forKey: "drawsBackground")