You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is now a selectedSegmentTintColor on UISegmentedControl. If you want to change the color of the selected segment, you should use selectedSegmentTintColor on iOS 13. setTintColor will not work.
eg:
if #available(iOS 13.0,*){
segmentControl.selectedSegmentTintColor =UIColor.white
segmentControl.setTitleTextAttributes([NSAttributedString.Key.foregroundColor:UIColor.black], for:.normal)}else{
tabBar.tintColor =UIColor.white
}
The text was updated successfully, but these errors were encountered:
There is now a
selectedSegmentTintColor
onUISegmentedControl
. If you want to change the color of the selected segment, you should useselectedSegmentTintColor
on iOS 13.setTintColor
will not work.eg:
The text was updated successfully, but these errors were encountered: