diff --git a/Sources/JTAppleCalendarView.swift b/Sources/JTAppleCalendarView.swift index 32e0aa17..b10e1def 100644 --- a/Sources/JTAppleCalendarView.swift +++ b/Sources/JTAppleCalendarView.swift @@ -116,7 +116,8 @@ open class JTAppleCalendarView: UICollectionView { if (collectionViewLayout as! JTAppleCalendarLayout).lastSetCollectionViewSize != frame { // ive seen that layout subview gets called. Calendar is setup, and then it gets called again // At this point, it already has generaed cells which needs to be invalidated. - reloadData() + calendarViewLayout.invalidateLayout() + layoutIfNeeded() } if !delayedExecutionClosure.isEmpty, isCalendarLayoutLoaded {