Skip to content

Commit b8f8e1b

Browse files
committed
Don't let WKWebView draw a background
1 parent 9847510 commit b8f8e1b

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)