Skip to content

Commit 46ca7b4

Browse files
committed
use clear background for the default UI
1 parent 0a09d44 commit 46ca7b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

BeyondWordsPlayer/BeyondWordsPlayer/PlayerView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ public class PlayerView: UIView {
2626
contentController.add(bridge, name: bridge.name)
2727
configuration.userContentController = contentController
2828
let webView = WKWebView(frame: .zero, configuration: configuration)
29+
webView.isOpaque = false
30+
webView.backgroundColor = .clear
2931
webView.navigationDelegate = self
3032
webView.scrollView.bounces = false
3133
webView.scrollView.isScrollEnabled = false
34+
webView.scrollView.backgroundColor = .clear
3235
if #available(iOS 16.4, *) {
3336
#if DEBUG
3437
webView.isInspectable = true

0 commit comments

Comments
 (0)