CalendarDateRangePickerViewController
CalendarDateRangePickerViewController copied to clipboard
Crash Issue
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 }
Faced same issue. You need to set minimumDate & maximumDate before presenting. I hope you have already solved the issue.
thanx a lot karunhappy, i had the same issue and i did exactly what u says and it works