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

Crash Issue #24

Open
Travloper opened this issue Oct 1, 2019 · 2 comments
Open

Crash Issue #24

Travloper opened this issue Oct 1, 2019 · 2 comments

Comments

@Travloper
Copy link

Hi i have integrated the pod as directed. Yet it gave me error in the File - "CalendarDateRangePickerViewController.swift" at line no. - 76 as - " Unexpectedly found nil while implicitly unwrapping an Optional value "

Here is the code crashing -

override public func numberOfSections(in collectionView: UICollectionView) -> Int {
let difference = Calendar.current.dateComponents([.month], from: minimumDate, to: maximumDate)
return difference.month! + 1
}

@karunhappy
Copy link

Faced same issue. You need to set minimumDate & maximumDate before presenting.
I hope you have already solved the issue.

@basmaamahmoud
Copy link

thanx a lot karunhappy, i had the same issue and i did exactly what u says and it works

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

No branches or pull requests

3 participants