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