You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FSCalendar has a working range of dates minimumDate - maximumDate, by defaults it's 1970-01-01 and 2099-12-31
I noticed strange behavior of minimumDate calculation for some time zones (e.g. America/Mazatlan (GMT-7))
here newMin will be 1970-01-01 01:00:00 however for any other date an hour component will be set to 0 hours
(e.g. 1970-01-02 00:00:00)
Because of this, calculations like - (NSIndexPath *)indexPathForDate:(NSDate *)date scope:(FSCalendarScope)scope are broken and leads to crash on iOS 17
There is a way to change minimumDate by implementing dataSource method to avoid such behavior
/**
* Asks the dataSource the minimum date to display.
*/
- (NSDate *)minimumDateForCalendar:(FSCalendar *)calendar;
Attempted to modify the selection of an item in an out-of-bounds section (648) when there are only 648 sections. Collection view: <FSCalendarCollectionView: 0x10a04f200; baseClass = UICollectionView; frame = (0 0; 0 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x282c844e0>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x28228c8a0>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}; layout: <FSCalendarCollectionViewLayout: 0x10914ad90>; dataSource: <FSCalendar: 0x109345d30; frame = (0 0; 0 0); layer = <CALayer: 0x2822845a0>>>.
cocoapods安装
例如: iPhone14 iOS17.1.2
FSCalendar 2.8.4
The text was updated successfully, but these errors were encountered: