Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): TabGroup bar is wrongly transparent on iOS 15 #12946

Merged
merged 4 commits into from
Aug 24, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions iphone/Classes/TiUITabGroup.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ - (UITabBarController *)tabController
controller.delegate = self;
controller.moreNavigationController.delegate = self;
[TiUtils configureController:controller withObject:self.proxy];
if ([TiUtils isIOSVersionOrGreater:@"15.0"]) {
jquick-axway marked this conversation as resolved.
Show resolved Hide resolved
UITabBarAppearance *appearance = controller.tabBar.standardAppearance;
[appearance configureWithDefaultBackground];
appearance.backgroundColor = UIColor.clearColor;
controller.tabBar.scrollEdgeAppearance = appearance;
}
}
return controller;
}
Expand Down Expand Up @@ -365,6 +371,10 @@ - (void)setTabsBackgroundColor_:(id)value
UITabBar *tabBar = [controller tabBar];
//A nil tintColor is fine, too.
[tabBar setBarTintColor:[color color]];
if ([TiUtils isIOSVersionOrGreater:@"15.0"]) {
jquick-axway marked this conversation as resolved.
Show resolved Hide resolved
tabBar.standardAppearance.backgroundColor = [color color];
tabBar.scrollEdgeAppearance.backgroundColor = [color color];
}
}

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