MBCalendarKit v5.1.0 Release Notes

Release Date: 2017-09-11 // over 4 years ago
  • โž• Added

    • โž• Added a demo for first day of the week handling.
    • โž• Added a demo for animated week transitions.

    ๐Ÿ”„ Changed

    • ๐Ÿ›  Fixes for firstWeekday bug. (#73, #110, #127)
    • ๐Ÿ›  Fix infinite loop in CKCalendarViewController's delegate implementation.
    • If we try to set the view model's date to the same exact date that it already is, we return. This avoids firing off an entire layout pass.
    • ๐Ÿ–จ CKCalendarCell now takes an integer for setNumber instead of an NSNumber. This method uses a asprintf to format the string. This can be faster in some cases.
    • ๐Ÿ“„ Use [NSLayoutConstraint activateConstraints:] instead of [self addConstraints:] in CKCalendarHeaderView. The docs say that activateConstraints: is more efficient.
    • ๐Ÿ‘‰ Use the ivar for getting the cell identifier inside CKGridView instead of the property accessor.
    • Compute the initialOffset once in the calendar model and cache it on the flow layout subclass, to avoid duplicating this computation per cell.
    • CKCalendarView now checks for self.window before reloading.
    • Calling setDate: on CKCalendarModel passing a date that is the same day as the current date will short circuit after clamping to minimum/maximum dates, and the delegate methods will not get called.
    • No longer call reload in CKCalendarView's init. We call it later in the object's lifecycle anyway.
    • โœ‚ Removed calls to super in touchesBegan:, touchesMoved: and friends. Much faster!
    • Cache firstVisibleDate and lastVisibleDate
    • Cache the font used in the CKCalendarCell class.
    • Cache CKCalendarModel's dateForIndexPath and indexPathForDate values.
    • Cache drawn polygon images in the next/back buttons.