Skip to content

Commit c8b2863

Browse files
System background color fix for iOS 13.
1 parent d6546f9 commit c8b2863

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

swift-sdk/Internal/InAppDisplayer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class InAppDisplayer: InAppDisplayerProtocol {
6767

6868
// htmlMessageVC.view triggers WKWebView's loadView() to start loading the HTML.
6969
// just make sure that's triggered for the InAppPresenter work correctly
70-
if #available(iOS 13, *) {
70+
if #available(iOS 14, *) {
7171
htmlMessageVC.view.backgroundColor = UIColor.systemBackground.withAlphaComponent(CGFloat(backgroundAlpha))
7272
} else {
7373
htmlMessageVC.view.backgroundColor = UIColor.white.withAlphaComponent(CGFloat(backgroundAlpha))

swift-sdk/Internal/IterableHtmlMessageViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class IterableHtmlMessageViewController: UIViewController {
6868
if parameters.isModal {
6969
view.backgroundColor = UIColor.clear
7070
} else {
71-
if #available(iOS 13, *) {
71+
if #available(iOS 14, *) {
7272
view.backgroundColor = UIColor.systemBackground
7373
} else {
7474
view.backgroundColor = UIColor.white

0 commit comments

Comments
 (0)