Registering a custom cell in FSCalendar and setting the minimumDate and maximumDate, the returned cell fails to be casted as the custom cell class when the position is .outOfBounds in Swift 3.0.
This also happens on the test project.
cocoapodsDIYExampleViewController in the SwiftExample project func minimumDate(for calendar: FSCalendar) -> Date {
return Date()
}
func maximumDate(for calendar: FSCalendar) -> Date {
let oneYearFromNow = Calendar.current.date(byAdding: .year, value: 1, to: Date(), wrappingComponents: true)
return oneYearFromNow!
}
e.g. Xcode 8.0e.g. FSCalenda 2.5.1Thanks for reporting @dimmdesign . Will fix this ASAP.
Have merged this fix. Thanks.
Most helpful comment
Have merged this fix. Thanks.