iOS 13.6 introduced preferredDatePickerStyle which controls the look of the date picker...
as you can see, the image has an arrow pointing to a tick, doing color debugging does not show any label that has white color, so there is no hidden object.
what to do to add year selection, and render weekdays and months?
Code
@IBOutlet weak var startDateTextField: UITextField!
lazy var startDatePicker: UIDatePicker = {
return UIDatePicker()
}()
override func viewDidLoad() {
super.viewDidLoad()
startDatePicker.datePickerMode = .date
if #available(iOS 14, *) {
startDatePicker.frame.size = .init(width: self.view.bounds.width, height: 100)
startDatePicker.preferredDatePickerStyle = .inline
startDatePicker.tintColor = .systemPink
startDatePicker.backgroundColor = .white
startDatePicker.overrideUserInterfaceStyle = .light
}
startDateTextField.inputView = startDatePicker
// Do any additional setup after loading the view.
}

