Skip to content

fix:Fix text color reverting to default after changing tintColor #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions ios/RNCSegmentedControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ - (void)setTintColor:(UIColor *)tintColor {
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
if (@available(iOS 13.0, *)) {
[self setSelectedSegmentTintColor:tintColor];
NSDictionary *attributes = [NSDictionary
dictionaryWithObjectsAndKeys:tintColor, NSForegroundColorAttributeName,
nil];
NSDictionary *activeAttributes = [NSDictionary
dictionaryWithObjectsAndKeys:UIColor.labelColor,
NSForegroundColorAttributeName, nil];
[self setTitleTextAttributes:attributes forState:UIControlStateNormal];
[self setTitleTextAttributes:activeAttributes
forState:UIControlStateSelected];
}
#endif
}
Expand Down