weilsonwonder / WWCalendarTimeSelector

A android inspired iOS date/time picker
MIT License
317 stars 126 forks source link

how to disable previous dates from today ... #88

Open sarath435 opened 5 years ago

sarath435 commented 5 years ago

please suggest me....thanks in advance

raj-qt commented 5 years ago

Got same problem, any solution, if yes then let me know.

Thanks

devanshi318 commented 5 years ago

how to not display the previous date? Is there any solution?

amritaThonge commented 5 years ago

you can use method -> func WWCalendarTimeSelectorShouldSelectDate(_ selector: WWCalendarTimeSelector, date: Date) -> Bool {

    if date < currentDate{

        return true

    }
amritaThonge commented 5 years ago

if you want to disable just return false