Skip to content

Commit b9d7870

Browse files
authored
fix:Fix text color reverting to default after changing tintColor (#803)
1 parent b1a3fa5 commit b9d7870

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ios/RNCSegmentedControl.m

-9
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ - (void)setTintColor:(UIColor *)tintColor {
6060
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
6161
if (@available(iOS 13.0, *)) {
6262
[self setSelectedSegmentTintColor:tintColor];
63-
NSDictionary *attributes = [NSDictionary
64-
dictionaryWithObjectsAndKeys:tintColor, NSForegroundColorAttributeName,
65-
nil];
66-
NSDictionary *activeAttributes = [NSDictionary
67-
dictionaryWithObjectsAndKeys:UIColor.labelColor,
68-
NSForegroundColorAttributeName, nil];
69-
[self setTitleTextAttributes:attributes forState:UIControlStateNormal];
70-
[self setTitleTextAttributes:activeAttributes
71-
forState:UIControlStateSelected];
7263
}
7364
#endif
7465
}

0 commit comments

Comments
 (0)