UIDatePicker does not reflect chosen tintColor in iOS 15?

I have a UIDatePicker which I previously set it's tintColor to .systemOrange inside IB and this worked fine prior to iOS 15.

For some reason with the release of 15, my datePicker's tintColor is still .systemOrange when I print it out at runtime but it shows as a default colour (that is white in dark mode and black in light mode) until selected, when it then switches to my selected colour. Then, after selecting a date and the view collapses back in, it automatically switches back to that 'default' colour again.

This issue only popped up with iOS 15. I would like it to always be my chosen tintColor at all times please, not only when selected!

I currently set my tintColor in IB, but I've already tried setting it programmatically and as User Defined Runtime Attributes, both of which with no luck.

Any ideas what's going and anyone else have the same issue?

Answered by Frameworks Engineer in 689928022

This is behaving correctly. UIDatePicker on iOS 15 has an updated design to use the system label colour in the default state, and only use the tint colour when selected.

Accepted Answer

This is behaving correctly. UIDatePicker on iOS 15 has an updated design to use the system label colour in the default state, and only use the tint colour when selected.

UIDatePicker does not reflect chosen tintColor in iOS 15?
 
 
Q