Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
Tweak attributes in tab navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
msaps committed May 17, 2016
1 parent 15a1edd commit 9e7ea62
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ - (void)setTitleTextAttributes:(NSDictionary<NSString *,id> *)titleTextAttribute

UIColor *foregroundColor = nil;
if ((foregroundColor = titleTextAttributes[NSForegroundColorAttributeName])) {
NSMutableDictionary *tabAttributes = self.tabBarView.tabAttributes ? [self.tabBarView.tabAttributes mutableCopy] : [NSMutableDictionary new];
NSMutableDictionary *tabAttributes = self.tabBarView.tabAttributes ?
[NSMutableDictionary dictionaryWithDictionary:self.tabBarView.tabAttributes] : [NSMutableDictionary new];
[tabAttributes setObject:foregroundColor forKey:MSSTabTextColor];
self.tabBarView.tabAttributes = tabAttributes;
}
Expand Down

0 comments on commit 9e7ea62

Please sign in to comment.