Skip to content

Add shouldSelect option in togglePresentedDate method#606

Open
yoobato wants to merge 2 commits into
CVCalendar:masterfrom
yoobato:master
Open

Add shouldSelect option in togglePresentedDate method#606
yoobato wants to merge 2 commits into
CVCalendar:masterfrom
yoobato:master

Conversation

@yoobato
Copy link
Copy Markdown

@yoobato yoobato commented May 22, 2021

Add shouldSelect option parameter in togglePresentedDate method.
This determines whether selectDayViewWithDay method where is in the end of togglePresentedDate method should be called or not.

I set true as default value for shouldSelect to support legacy codes.

AS-IS (CVCalendarContentViewController)
@objc public func togglePresentedDate(_ date: Foundation.Date) { }

TO-BE
@objc public func togglePresentedDate(_ date: Foundation.Date, shouldSelect: Bool = true) { }

This may helps #251 although it's closed.

yoobato added 2 commits May 22, 2021 17:34
Add shouldSelect parameter determines whether selectDayViewWithDay method will calls or not after togglePresentedDate method
Call selectDayViewWithDay method  only when shouldSelect is true in togglePresentedDate method
@stale
Copy link
Copy Markdown

stale Bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Thank you for your contributions.

@stale stale Bot added the Stale label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant