UISegmentedControl is using darkened image color for both selected/unselected segments - iOS 13 beta 6. I'm using UIImages in a UISegmentedControl that displays play/pause/stop controls:
// play, pause, stop buttons are white on transparent background. Issue is that all are displayed as black.
segmentedControl = [[UISegmentedControl alloc] initWithItems:
[NSArray arrayWithObjects:
[UIImage imageNamed:@"play.png"],
[UIImage imageNamed:@"pause.png"],
[UIImage imageNamed:@"stop.png"],
nil]];
segmentedControl.backgroundColor = [UIColor blackColor];
The image is white on transparent background. On iOS <=12 the image would be displayed unchanged in unselected segments of a UISegmentedControl--but it would be darkened automatically for any selected segment, so it would standout from the selected segment color (white).
On iOS 13 beta 1-6 all the segments, selected and unselected, are using a darkened variant. So the white play/stop/buttons are being displayed as black on a black background--so they're invisible in a dark mode UI.
Has anyone else encountered this issue?
It’s logged as FB 6944724 through Feedback assistant.