-
Notifications
You must be signed in to change notification settings - Fork 811
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
SelectedPosition problem when config generateInDates or generateOutDates #1273
Comments
this ? calendarView.rangeSelectionMode = .continuous
calendarView.rangeSelectionMode = .segmented |
with thank you |
The behaviour you are seeing is not a bug. It is behaving as intended. It appears that way on your screen because you have hidden the outdates. The real issue here seems to be this --> I do not have a have to code the library that will satisfy every developer for ranged selection. There are many conditions that have to be considered. |
ok. I see an edge case fix that i can apply. |
Keep in mind, i know how to fix your issue. |
Ok yea, the fix will work. But other developers wont be happy. Therefore i have determined the ultimate solution for this.
Because the problem is that i let the developers determine when to show or hide the indates/outDates on their own. However, if this library now begins to manage the visibility/invisibility of the inDates/OutDates, Then i will know how to adjust what the ranged |
greaaaat!!! |
I didnt want this library to "hold the developers hand" so much however..... |
it's not possible to handle it with |
if |
But because it is hidden by the developer (and not the library). The library does not know about it. And therefore cannot make the 31 to be red color. I can do a fix to fix the issue. But then it will no longer be |
but i think developer hide as you said above if you want to add these functions in library:
i think you can handle it with
Although maybe I'm wrong and just |
Ah. Here indates/outdates are generated and hidden/invisible. Here indates/outdates are not generated at all. And therefore are not visible. So there is difference between generating them and hiding them. With the solution i plan to implement, I will be handeling the visibility (not the generation). |
Hi @patchthecode @SajjadKharrazi , I face the same problem, any workaround for this situation? 🙏 |
with these configuration of calendar:
ConfigurationParameters(startDate: startDate, endDate: endDate, generateInDates: .off, generateOutDates: .off)
then
cellState.selectedPosition()
returns wrong response in start and end of month.you have an
2tapRangedSelection
example, you can edit it and see wrong result.The text was updated successfully, but these errors were encountered: