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

Select range #125

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Select range #125

wants to merge 4 commits into from

Conversation

levous
Copy link
Contributor

@levous levous commented May 13, 2020

Enables selecting a range of dates.

Resolves #32 Select a range of dates

Range of Dates

levous added 4 commits May 13, 2020 07:06
…when deselecting programatically during delegation
- Changes multipleSelectionEnable bool to multipleSelectionMode enum.  Supports and deprecates previous property for non-breaking change
- Multiple select, range and single are mutually exclusive. Single and multiple behave as before
- Range selection:
- When a new selected date is outside of any current selections, all dates in between are selected
- When a deselected date is inside of the date range of current selections, all selections are deselected
- When the first or last selected date are deselected, just that date is removed from the range
- Single dates toggle
Copy link
Contributor Author

@levous levous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you have any questions

@@ -28,12 +28,6 @@ import UIKit
import EventKit
#endif

struct EventLocation {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was dead code. Not referenced in the project

@@ -81,7 +81,7 @@ Note: The dates should be in UTC (same as GMT)

# How to Use

You would want to implement the delegate functions inside your view controller as they appear in the example project.
You would want to implement the delegate functions inside your view controller as they appear in the example project. Don't forget to assign your class as the `CalendarView` delegate.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that boggled me for a minute in the beginning. The example project set me straight

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

Successfully merging this pull request may close these issues.

Ability to select dates in range format
1 participant