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

Make selectedDate nullable #581

Merged
merged 1 commit into from
Feb 20, 2017
Merged

Make selectedDate nullable #581

merged 1 commit into from
Feb 20, 2017

Conversation

roark31337
Copy link
Contributor

We were encountering a crash when using FSCalendar in a Swift app. Upon accessing the property it was being force unwrapped since it was not marked nullable.

Marking it as nullable enables the property to be nil (which it can be).

If the property is not marked nullable then a forced unwrapping is occuring which is causing a crash.
@WenchaoD WenchaoD merged commit ebfef91 into WenchaoD:master Feb 20, 2017
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.

2 participants