Skip to content

Commit 4d687ba

Browse files
committed
remove old code
1 parent 812b87e commit 4d687ba

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

swift-sdk/Internal/InAppDisplayer.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ class InAppDisplayer: InAppDisplayerProtocol {
6464

6565
topViewController.definesPresentationContext = true
6666

67-
// htmlMessageVC.view triggers WKWebView's loadView() to start loading the HTML.
68-
// just make sure that's triggered for the InAppPresenter work correctly
69-
if #available(iOS 14, *) {
70-
htmlMessageVC.view.backgroundColor = UIColor.systemBackground.withAlphaComponent(CGFloat(backgroundAlpha))
71-
} else {
72-
htmlMessageVC.view.backgroundColor = UIColor.white.withAlphaComponent(CGFloat(backgroundAlpha))
73-
}
74-
7567
htmlMessageVC.modalPresentationStyle = .overFullScreen
7668

7769
let presenter = InAppPresenter(topViewController: topViewController, htmlMessageViewController: htmlMessageVC)

0 commit comments

Comments
 (0)