Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable features date after selecting date #111

Open
MujtabaMK opened this issue Aug 13, 2024 · 0 comments
Open

Disable features date after selecting date #111

MujtabaMK opened this issue Aug 13, 2024 · 0 comments

Comments

@MujtabaMK
Copy link

I want to disable only future dates not all dates currently my code is disabling all dates

func WWCalendarTimeSelectorShouldSelectDate(_ selector: WWCalendarTimeSelector, date: Date) -> Bool {
    print(date)
    let modifiedDate = Calendar.current.date(byAdding: . day, value: 31, to: date)!
    print(modifiedDate)
    if modifiedDate >= date{
        return false
    }else{
        return true
    }
}

I want to disable dates after 31 dates from selection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant