We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c0822 commit 3287d67Copy full SHA for 3287d67
ios/RNCSegmentedControl.m
@@ -41,10 +41,14 @@ - (void)setSelectedIndex:(NSInteger)selectedIndex
41
42
- (void)setFontSize:(NSInteger)fontSize
43
{
44
- UIFont *font = [UIFont boldSystemFontOfSize: fontSize];
+ UIFont *font = [UIFont systemFontOfSize: fontSize];
45
[_attributes setObject: font forKey:NSFontAttributeName];
46
[self setTitleTextAttributes:_attributes
47
forState:UIControlStateNormal];
48
+ UIFont *fontBold = [UIFont boldSystemFontOfSize: fontSize];
49
+ [_attributes setObject: fontBold forKey:NSFontAttributeName];
50
+ [self setTitleTextAttributes:_attributes
51
+ forState:UIControlStateSelected];
52
}
53
54
- (void)setBackgroundColor:(UIColor *)backgroundColor
0 commit comments