CalendarDateRangePickerViewController icon indicating copy to clipboard operation
CalendarDateRangePickerViewController copied to clipboard

Crash Issue

Open Travloper opened this issue 5 years ago • 2 comments

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 }

Travloper avatar Oct 01 '19 07:10 Travloper

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

karunhappy avatar Oct 14 '19 08:10 karunhappy

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

basmaamahmoud avatar Nov 15 '19 18:11 basmaamahmoud