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

Adds setDate function. Fixes issue #2 #3

Merged
merged 3 commits into from Oct 22, 2019
Merged

Adds setDate function. Fixes issue #2 #3

merged 3 commits into from Oct 22, 2019

Conversation

Reza-Rajabi
Copy link

Hi,
I tried to touch the code as little as possible. Please let me know if any problems/improvements.

Rare

}
}

public func setDate(withDate date: Date) {
Copy link
Owner

Choose a reason for hiding this comment

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

I'd prefer updateDate(to date: Date)

}

public func setDate(withDate date: Date) {
if pickersAreSetUp {
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think the pickersAreSetUp property is necessary here. Instead, I think we should change setup(withInitiallySelectedDate:) to just setup()and add a call tosetup()frominit`.

@calda
Copy link
Owner

calda commented Oct 21, 2019

Thanks for working on this!

@Reza-Rajabi
Copy link
Author

Thank you for the review.
I will change them.

@Reza-Rajabi
Copy link
Author

I made changes as you wanted. Please let me know if any concerns.

Copy link
Owner

@calda calda left a comment

Choose a reason for hiding this comment

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

Thank you!

@calda calda merged commit a19fe8c into calda:master Oct 22, 2019
@Reza-Rajabi
Copy link
Author

Thank you for this useful repo.

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.

None yet

2 participants