Closed jurex closed 4 years ago
Does it work for you with the function like this?:
func configurePickerStyle(_ cell: DatePickerCell, _ mode: UIDatePicker.Mode = .dateAndTime) {
cell.datePicker.datePickerMode = mode
// For Xcode 11.4 and above
#if swift(>=5.2)
if #available(iOS 14.0, *) {
#if swift(>=5.3) && !(os(OSX) || (os(iOS) && targetEnvironment(macCatalyst)))
cell.datePicker.preferredDatePickerStyle = .inline
#else
cell.datePicker.preferredDatePickerStyle = .wheels
#endif
}
else if #available(iOS 13.4, *) {
cell.datePicker.preferredDatePickerStyle = .wheels
}
#endif
}
yes @mats-claassen, I'm able to compile the project again. Thanks!
The latest release (5.3.0) does not build on Xcode 12 GM, when using Mac Catalyst as target. Error message:
Type 'UIDatePickerStyle' has no member 'inline'