I am using Xcode Version 12.0 (12A7208) with…
I have tried:
and …
and …
Code Block picker.preferredDatePickerStyle = .wheels
I have tried:
Code Block picker.setValue(UIColor.white, forKeyPath: "textColor") // crash
and …
Code Block picker.tintColor = UIColor.white // no change
and …
Code Block UILabel.appearance(whenContainedInInstancesOf: [UIDatePicker.self]).textColor = UIColor.white // no change
For custom design as per requirment need to change DatePicker text color but by upper code I tried but not changing the color. Its showing default color "white color". I used self.datePicker.preferredDatePickerStyle = .wheels and wants to change text color. Bcz in simulator text color coming black9 but in device white color showing.