Search code examples
iosswiftstoryboarduidatepickerios14

Swift IOS UIDatepicker - UIDatepicker displaying incorrectly


So I have started taking over some of the development for an IOS app which I am still quite new at so just curious as to where to start looking for an issue such as this?

When calling the datepicker, I am not sure if this is constraint related or not and would appreciate any sort of heading.

example


Solution

  • Just add below line and it will show date picker in old way

    if #available(iOS 13.4, *) {
        self.datePicker.preferredDatePickerStyle = .wheels
    }