Skip to content

Commit c5f7a9f

Browse files
committed
Fix carb date picker
1 parent 4f7139a commit c5f7a9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Loop/View Controllers/CarbEntryViewController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ final class CarbEntryViewController: ChartsTableViewController, IdentifiableClas
219219
cell.titleLabel.text = NSLocalizedString("Date", comment: "Title of the carb entry date picker cell")
220220
cell.datePicker.isEnabled = isSampleEditable
221221
cell.datePicker.datePickerMode = .dateAndTime
222+
if #available(iOS 14.0, *) {
223+
cell.datePicker.preferredDatePickerStyle = .wheels
224+
}
222225
cell.datePicker.maximumDate = Date(timeIntervalSinceNow: maximumDateFutureInterval)
223226
cell.datePicker.minuteInterval = 1
224227
cell.date = date

0 commit comments

Comments
 (0)