-
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
wrong date retuned with gesture recognition. #1276
Comments
the code used.
|
for me this is a very important thing - as in my implementation, long click on a date meaning the user wants this date as a "single date range" |
ok i can see the problem
this function does not take the current month into the account what so ever... |
ok it was actually easy
|
you are welcome to upload this fix in the next version |
Can you let me know what date you are expecting, and what date you are receiving? |
"Can you let me know what date you are expecting, and what date you are receiving? I am expecting the day i am pressing on utc-0, start of day. |
for me my solution works - it gives me the correct date, but the cellState.cell is still nil. the problem is: |
ok i solved this as well.
|
also added new function, for those who care only for the cell data. (like my case of use)
|
leave open. i'll take a loo once i get the chance. |
no problem sorry. |
i am still using my fork, more then a year.. no new version?) |
time is short these days. Can you tell me if the tutorial here fixes your issue? https://patchthecode.com/jtapplecalendar-home/ranged-selection/ |
It has code in there for getting the point of the gesture. Scroll down to the Dragging your finger to Ranged Selection section. |
Or do you have a discord address? typing here is a bit slow. |
let cellState = calendarView.cellStatus(at: gesture.location(in: gesture.view!))
cellState.date, will always return the first section month, instead of the real month.
*I can see now that this is long time issue..
#253 (comment)
The text was updated successfully, but these errors were encountered: