When displaying UIDatePicker, CPU spikes to 100% and Memory reaches 3GB when High Contrast is ON

When 'Increase Contrast' is turned ON, every time I display a custom view with 2 UIDatePickers in it, the CPU and Memory Usage just goes max then the app crashes due to memory issue.

This only happens if it 'Increase Contrast' is turned ON, the CPU and memory spike does not occur when it is OFF.

Anyone else have encountered this issue? I looked online elsewhere but I couldn't find anything about this.

I looked up online and I found out that it's not possible to make the app ignore the Increase Contrast flag (just like you could ignore Dark Mode), as well as, you cannot change/assign colors to the UIDatePicker. So I'm out of ideas now.

What could be possible solutions for this problem?

NOTE: To turn on 'Increase Contrast', just go to [Settings → Accessibility → Display & Text Size]

Hi there, sorry you're running into this issue. Thanks for raising it here! To help the team triage and understand this better, please take a few minutes to file a bug report using the Feedback Assistant tool, https://developer.apple.com/bug-reporting/

The Feedback Assistant tool will help you attach vital information to understanding what might be going on here like device logs, reports for power usage, and crash traces. Feel free to reply here with your feedback ID when you're done!

When displaying UIDatePicker, CPU spikes to 100% and Memory reaches 3GB when High Contrast is ON
 
 
Q