Skip to content

Commit

Permalink
Date picker wheel fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Bórquez committed Aug 4, 2021
1 parent d139045 commit f090a39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Alerts_and_Pickers.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "Alerts_and_Pickers"
spec.version = "0.0.5"
spec.version = "0.0.6"
spec.summary = "Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date..."

spec.description = <<-DESC
Expand Down
5 changes: 5 additions & 0 deletions Source/Pickers/Date/DatePickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public final class DatePickerViewController: UIViewController {
datePicker.date = date ?? Date()
datePicker.minimumDate = minimumDate
datePicker.maximumDate = maximumDate

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

self.action = action
}

Expand Down

0 comments on commit f090a39

Please sign in to comment.