mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
fix: iOS 15 new tab bar appearance not override issue
This commit is contained in:
parent
051a8f40e3
commit
e5a3c4ae0d
@ -48,6 +48,11 @@ extension ThemeService {
|
||||
tabBarAppearance.backgroundColor = theme.tabBarBackgroundColor
|
||||
tabBarAppearance.selectionIndicatorTintColor = Asset.Colors.brandBlue.color
|
||||
UITabBar.appearance().standardAppearance = tabBarAppearance
|
||||
if #available(iOS 15.0, *) {
|
||||
UITabBar.appearance().scrollEdgeAppearance = tabBarAppearance
|
||||
} else {
|
||||
// Fallback on earlier versions
|
||||
}
|
||||
UITabBar.appearance().barTintColor = theme.tabBarBackgroundColor
|
||||
|
||||
// set table view cell appearance
|
||||
|
Loading…
x
Reference in New Issue
Block a user