Browse Source

Fix truncated bottomTab.text with semibold fontWeight (#6026)

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

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

@@ -9,10 +9,12 @@
9 9
 }
10 10
 
11 11
 + (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
12
+    [super setTitleAttributes:tabItem titleAttributes:titleAttributes];
12 13
     tabItem.standardAppearance.stackedLayoutAppearance.normal.titleTextAttributes = titleAttributes;
13 14
 }
14 15
 
15 16
 + (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
17
+    [super setSelectedTitleAttributes:tabItem selectedTitleAttributes:selectedTitleAttributes];
16 18
     tabItem.standardAppearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
17 19
 }
18 20