Browse Source

Fix bottomTab colors in landscape orientation (#6153)

Yogev Ben David 4 years ago
parent
commit
89402dc31a
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/ios/TabBarItemAppearanceCreator.m

+ 4
- 0
lib/ios/TabBarItemAppearanceCreator.m View File

11
 + (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
11
 + (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
12
     [super setTitleAttributes:tabItem titleAttributes:titleAttributes];
12
     [super setTitleAttributes:tabItem titleAttributes:titleAttributes];
13
     tabItem.standardAppearance.stackedLayoutAppearance.normal.titleTextAttributes = titleAttributes;
13
     tabItem.standardAppearance.stackedLayoutAppearance.normal.titleTextAttributes = titleAttributes;
14
+    tabItem.standardAppearance.compactInlineLayoutAppearance.normal.titleTextAttributes = titleAttributes;
15
+    tabItem.standardAppearance.inlineLayoutAppearance.normal.titleTextAttributes = titleAttributes;
14
 }
16
 }
15
 
17
 
16
 + (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
18
 + (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
17
     [super setSelectedTitleAttributes:tabItem selectedTitleAttributes:selectedTitleAttributes];
19
     [super setSelectedTitleAttributes:tabItem selectedTitleAttributes:selectedTitleAttributes];
18
     tabItem.standardAppearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
20
     tabItem.standardAppearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
21
+    tabItem.standardAppearance.compactInlineLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
22
+    tabItem.standardAppearance.inlineLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
19
 }
23
 }
20
 
24
 
21
 @end
25
 @end