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

> you need to subscribe on this function func willSelectDate(_ date: Date, type: CalendarType) { print(date, type) calendarView.reloadData() } #364

Open
dhavalSA opened this issue Jul 8, 2024 · 7 comments

Comments

@dhavalSA
Copy link

dhavalSA commented Jul 8, 2024

          > you need to subscribe on this function `func willSelectDate(_ date: Date, type: CalendarType) { print(date, type) calendarView.reloadData() }`

@kvyatkovskys this solution works only when we have style.month.autoSelectionDateWhenScrolling = true, in my case, I am using style.month.autoSelectionDateWhenScrolling = false to have the same user experience as Apple's default calendar, when we set style.month.autoSelectionDateWhenScrolling = false willSelectDate is not getting called then how can I show events without selecting any date

Originally posted by @dhavalSA in #241 (comment)

@dhavalSA
Copy link
Author

dhavalSA commented Jul 9, 2024

@kvyatkovskys is it possible to guide me here, on how I can fix it, I need this working, I need only guidance I will fix it on my own if you are busy

@kvyatkovskys
Copy link
Owner

Hi, I'll take a look and give you an answer today

@kvyatkovskys
Copy link
Owner

I checked code and it's impossible right now... Can you check this branch feature/v_0.6.25 I added some changes

@dhavalSA
Copy link
Author

@kvyatkovskys thanks , i will check and let you know

@dhavalSA
Copy link
Author

@kvyatkovskys still same issue

@kvyatkovskys
Copy link
Owner

Can you describe what do you need? Cos for me all works fine

@dhavalSA
Copy link
Author

dhavalSA commented Jul 11, 2024

@kvyatkovskys assume that I have 3 events in July and 3 events in August, I am using Month view for now, when I load the calendar with today's date selected, it shows 3 events in July month, now if I am scrolling to August month where I also have 3 events but these events are not visible on the calendar until I select any date on August month, in short, we can say, for any month we need t select any date on that month to make events visible on the calendar

FYI: in my calendar setup I have style.month.autoSelectionDateWhenScrolling = false as it's desired behaviour I want

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

2 participants