Skip to content

Commit

Permalink
Fix datepicker style on iOS 14
Browse files Browse the repository at this point in the history
  • Loading branch information
Flawion committed Oct 14, 2020
1 parent 8f6bb42 commit b4aad9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KOControls.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'KOControls'
s.version = '1.2.3'
s.version = '1.2.4'

s.summary = 'Package of useful controls: pickers, presenting queue, textfield thats supports validation, showing the errors etc.'
s.homepage = 'https://github.com/Flawion/KOControls'
Expand Down
4 changes: 2 additions & 2 deletions KOControls.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.4;
PRODUCT_BUNDLE_IDENTIFIER = pl.KO.KOControls;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -640,7 +640,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.2.3;
MARKETING_VERSION = 1.2.4;
PRODUCT_BUNDLE_IDENTIFIER = pl.KO.KOControls;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
3 changes: 3 additions & 0 deletions Sources/DialogViewControllers/KOPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ open class KODatePickerViewController: KODialogViewController {
// MARK: Methods
override open func createContentView() -> UIView {
let datePicker = UIDatePicker()
if #available(iOS 13.4, *) {
datePicker.preferredDatePickerStyle = .wheels
}
datePicker.addTarget(self, action: #selector(dateChanged), for: .valueChanged)
self.pDatePicker = datePicker
return datePicker
Expand Down

0 comments on commit b4aad9b

Please sign in to comment.