How to set date color in UIDatePicker in iOS 13

Issue #535

1
2
datePicker.setValue(UIColor.green, forKey: "textColor")
datePicker.setValue(false, forKey: "highlightsToday")

In iOS 14

1
2
3
4
if #available(iOS 14.0, *) {
datePicker.preferredDatePickerStyle = .wheels
datePicker.tintColor = UIColor.green
}

Inspect attributes


Updated at 2020-06-24 06:32:07

Comments