Skip to content

Commit 6252c68

Browse files
authored
Merge pull request #17 from dteoh/16-set-webview-bg
Don't let WKWebView draw a background
2 parents 9847510 + b8f8e1b commit 6252c68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

devdocs-macos/DocumentationViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class DocumentationViewController: NSViewController {
7272
webView.navigationDelegate = self
7373
webView.uiDelegate = self
7474
webView.wantsLayer = true
75+
// not possible to set "opaque" property, not possible to set backgroundColor...
76+
webView.setValue(false, forKey: "drawsBackground")
7577

7678
view.addSubview(webView)
7779
NSLayoutConstraint.activate([

0 commit comments

Comments
 (0)