Skip to content

Commit d15d687

Browse files
Merge pull request #410 from Iterable/bug/mob-2223-system-bgcolor
[MOB-2223] - Require iOS version 14 for `systemBackgroundColor`
2 parents 5745e25 + 03d6fee commit d15d687

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

swift-sdk/Internal/InAppDisplayer.swift

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

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

swift-sdk/Internal/IterableHtmlMessageViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class IterableHtmlMessageViewController: UIViewController {
8888
if parameters.isModal {
8989
view.backgroundColor = UIColor.clear
9090
} else {
91-
if #available(iOS 13, *) {
91+
if #available(iOS 14, *) {
9292
view.backgroundColor = UIColor.systemBackground
9393
} else {
9494
view.backgroundColor = UIColor.white

swift-sdk/IterableMessaging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public extension Notification.Name {
107107
}
108108

109109
static func defaultBackgroundColor() -> UIColor {
110-
if #available(iOS 13, *) {
110+
if #available(iOS 14, *) {
111111
return UIColor.systemBackground.withAlphaComponent(0.0)
112112
} else {
113113
return UIColor.white.withAlphaComponent(0.0)

0 commit comments

Comments
 (0)