squimer / DatePickerDialog-iOS-Swift

Date picker dialog for iOS
MIT License
580 stars 177 forks source link

iOS 14 handling preferredDatePickerStyle #111

Open nicholaschong95 opened 3 years ago

nicholaschong95 commented 3 years ago

Hi, DatePickerDialog will be having issue especially in iOS 14, as preferredDatePickerStyle by default is in compact mode, new picker style will be inline, any idea to fix ?

gmanenti commented 3 years ago

Hi, just insert:

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

in the show function.

lexin commented 3 years ago

yes. It would be nice to prepare pod update with this line just in the lib

https://github.com/squimer/DatePickerDialog-iOS-Swift/pull/113