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

Today is already selected.How to disable today showing selected. #480

Closed
rintoandrews90 opened this issue Nov 10, 2016 · 7 comments
Closed

Comments

@rintoandrews90
Copy link

Hi

today is already selected in calendar.

can i disable already selected today ?

also i want to disable a particular date is there any methods to disable already selected date

Thanks

@WenchaoD
Copy link
Owner

calendar.today = nil

@sssuourabh
Copy link

Please don't try to set minimum date as calendar.today, because it crash as today is already nil and you will get crash on method so use
func minimumDate(for calendar: FSCalendar) -> Date {
return "pass custom today's date object "
}

@yasminAmeer
Copy link

calendar.today = nil creates issue in release mode . like other than selected date ,all other dates in screen are highlighted in today date highlight color.once u scroll its working fine

@dongmai
Copy link

dongmai commented Jan 30, 2020

This is my solution for this issue :D

// Remove today auto select
calendar.appearance.todayColor = nil
calendar.appearance.titleTodayColor = calendar.appearance.titleDefaultColor

@gauripandey
Copy link

gauripandey commented Jul 24, 2021

func calendar(_ calendar: FSCalendar, shouldSelect date: Date, at monthPosition: FSCalendarMonthPosition) -> Bool {
if date .compare(Date()) == .orderedAscending {
return false
}
else {
return true
}
}

@tiendvth
Copy link

tiendvth commented Apr 6, 2022

how to transfer data for each day of the calendar to tablview cells

@tiendvth
Copy link

tiendvth commented Apr 6, 2022

how to transfer data for each day of the calendar to tablview cells?

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

7 participants