Skip to content

Commit d686126

Browse files
committed
fix: tab bar background under iOS 15 and Xcode 13
1 parent a5375fd commit d686126

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

WooCommerce/Classes/Extensions/UITabBar+Appearance.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ extension UITabBar {
1515
/// To fix it, we have to specifically set it in the `standardAppearance` object.
1616
///
1717
appearance.standardAppearance = createWooTabBarAppearance()
18+
19+
/// This is needed because the tab bar background has the wrong color under iOS 15 (using Xcode 13).
20+
/// More: issue-5018
21+
///
22+
if #available(iOS 15.0, *) {
23+
appearance.scrollEdgeAppearance = appearance.standardAppearance
24+
}
1825
}
1926

2027
/// Creates an appearance object for a tabbar with the default WC style.

0 commit comments

Comments
 (0)