Ability to select dates in range format
Is there a way to select dates by range instead of either daily or multiple days? So if a user selected Monday to Friday all days in between would be selected too.
There is not provision for that currently. I was thinking about it though, so might do some work to add this.
The ability to select dates in range will be awesome!
@mmick66 Will this be included in the project? Do you have any deadlines?
I'll see if I can work on it today.
@mmick66 Thanks a lot!
I'd like to work on it.
Great! @Omar-Kay. I recently implemented the ability to add new events. The trigger I selected is a long press, so I don't know how the user will be able to select ranges. Worst case we can find another way to add events.
Go ahead and I will check your pull requests. Thanks!
So I implemented on the cocoapods version a successful implementation of this feature, controlled by new a public bool rangeSelectionEnable, but I was stuck when trying to merge those changes with the latest changes on git. I've thusly shared with you the changed files, and you can try it out on the older version (latest version on cocoapods) until I figure out how to make it work on the git version, unless you have another suggestion.
Also, left a video of showing the pod modified version ;). I didn't want to attach too much, but I've tested that when the flag is disabled, it works like before.
Calendar view range selectable video.zip Changed calendar view files (from pod version).zip
Nevermind! Got it to work on the main branch as well now! How do I initiate a merge request?
Ran into this issue while trying to push. Any suggestions @mmick66 ?
Great. This is probably because you are trying to merge to the main branch directly. I suspect that you just cloned the project and worked from there. What you should do rather is a pull request. The way it's done is that you need to create a pull request.
To do that, fork the project (if you haven't already), include the changes in the forked repo, push them (it will be your repo so you should have all the privileges), and then go to the pull request tab and create a new pull request. Remember, a pull request is only created between forks.
Good luck, and thank you for your work.
Great, thanks for that! I've added a pull request
@Omar-Kay: There are issues with your changes and I had to revert. Please check what happens when you select a range across months. Start from one month and finish in the next one for example. There is something wrong there. Also, another problem is when you select a range, deselect, and then try to select starting from the same date. In this case it does not select it.