Skip to content

Commit

Permalink
fix(ios): window.setToolbar() background color on iOS 15
Browse files Browse the repository at this point in the history
Fixes TIMOB-28574
  • Loading branch information
jquick-axway authored and ewanharris committed Nov 17, 2021
1 parent 8d29f63 commit 1677d48
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,14 @@ - (void)setToolbar:(id)items withObject:(id)properties
UIColor *tintColor = [[TiUtils colorValue:@"tintColor" properties:properties] color];
[ourNC.toolbar setBarTintColor:barColor];
[ourNC.toolbar setTintColor:tintColor];

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000
if ([TiUtils isIOSVersionOrGreater:@"15.0"]) {
UIToolbarAppearance *appearance = ourNC.toolbar.standardAppearance;
[appearance configureWithDefaultBackground];
appearance.backgroundColor = barColor;
ourNC.toolbar.scrollEdgeAppearance = appearance;
}
#endif
[array release];
}
},
Expand Down

0 comments on commit 1677d48

Please sign in to comment.