Since it could not be changed from the property on Storyboard, it was supported by the following code.
datePicker.setValue(UIColor.white, forKey: "textColor")
datePicker.setValue(false, forKey: "highlightsToday")
The text color change is reflected as desired.
datePicker.setValue(UIColor.white, forKey: "textColor")
If highlightsToday
was not set, the text color change was not reflected in the Today part.
UIDatePicker Change color of text of “today” date
Recommended Posts