Skip to content

Commit

Permalink
Fix truncated bottomTab.text with semibold fontWeight (#6026)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Mar 10, 2020
1 parent 931167e commit b01629c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ios/TabBarItemAppearanceCreator.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ + (UITabBarItem *)createTabBarItem:(UITabBarItem *)mergeItem {
}

+ (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
[super setTitleAttributes:tabItem titleAttributes:titleAttributes];
tabItem.standardAppearance.stackedLayoutAppearance.normal.titleTextAttributes = titleAttributes;
}

+ (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
[super setSelectedTitleAttributes:tabItem selectedTitleAttributes:selectedTitleAttributes];
tabItem.standardAppearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
}

Expand Down

0 comments on commit b01629c

Please sign in to comment.