squimer / DatePickerDialog-iOS-Swift

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

How to disable a particular date in DatePickerDialog ? #53

Open ShadowSynthesis opened 7 years ago

ShadowSynthesis commented 7 years ago

Hey all,

i'm working on a datePicker for booking system. I need to disable some dates because there aren't available for booking (restaurant closed on 28/11/2016 for example) is there any way to do it ?

Thank You !

lfarah commented 7 years ago

Hey @ShadowSynthesis, we currently do not support that. I looked into this StackOverflow question and you can do it with the UIDatePicker dalegate inside DatePickerDialog.swift

lfarah commented 7 years ago

If you have time, it would be awesome if you opened a PR adding this functionality!