Skip to content

Commit

Permalink
fix(ios): TabGroup bar is wrongly transparent on iOS 15 (#12946)
Browse files Browse the repository at this point in the history
Fixes TIMOB-28505
Fixes TIMOB-28523
  • Loading branch information
jquick-axway authored Aug 24, 2021
1 parent 76d13f4 commit 15e292e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions iphone/Classes/TiUITabGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ - (UITabBarController *)tabController
controller.delegate = self;
controller.moreNavigationController.delegate = self;
[TiUtils configureController:controller withObject:self.proxy];
#if IS_SDK_IOS_15
if ([TiUtils isIOSVersionOrGreater:@"15.0"]) {
UITabBarAppearance *appearance = controller.tabBar.standardAppearance;
[appearance configureWithDefaultBackground];
appearance.backgroundColor = UIColor.clearColor;
controller.tabBar.scrollEdgeAppearance = appearance;
}
#endif
}
return controller;
}
Expand Down Expand Up @@ -365,6 +373,12 @@ - (void)setTabsBackgroundColor_:(id)value
UITabBar *tabBar = [controller tabBar];
//A nil tintColor is fine, too.
[tabBar setBarTintColor:[color color]];
#if IS_SDK_IOS_15
if ([TiUtils isIOSVersionOrGreater:@"15.0"]) {
tabBar.standardAppearance.backgroundColor = [color color];
tabBar.scrollEdgeAppearance.backgroundColor = [color color];
}
#endif
}

- (void)setTabsTintColor_:(id)value
Expand Down

0 comments on commit 15e292e

Please sign in to comment.