Bläddra i källkod

Fix bottomTab colors in landscape orientation (#6153)

Yogev Ben David 4 år sedan
förälder
incheckning
89402dc31a
No account linked to committer's email address
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      lib/ios/TabBarItemAppearanceCreator.m

+ 4
- 0
lib/ios/TabBarItemAppearanceCreator.m Visa fil

@@ -11,11 +11,15 @@
11 11
 + (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
12 12
     [super setTitleAttributes:tabItem titleAttributes:titleAttributes];
13 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 18
 + (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
17 19
     [super setSelectedTitleAttributes:tabItem selectedTitleAttributes:selectedTitleAttributes];
18 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 25
 @end