react-native-navigation的迁移库

TabBarItemAppearanceCreator.m 535B

1234567891011121314
  1. #import "TabBarItemAppearanceCreator.h"
  2. @implementation TabBarItemAppearanceCreator
  3. + (void)setTitleAttributes:(UITabBarItem *)tabItem titleAttributes:(NSDictionary *)titleAttributes {
  4. tabItem.standardAppearance.stackedLayoutAppearance.normal.titleTextAttributes = titleAttributes;
  5. }
  6. + (void)setSelectedTitleAttributes:(UITabBarItem *)tabItem selectedTitleAttributes:(NSDictionary *)selectedTitleAttributes {
  7. tabItem.standardAppearance.stackedLayoutAppearance.selected.titleTextAttributes = selectedTitleAttributes;
  8. }
  9. @end