JTAppleCalendar: Calendar layout is not of type JTAppleCalendarMonthLayout.

Updated JTAppleCalendar pod from 7.1.7 to 8.0.0 version. Now I’m getting the following assertion failure:

Calendar layout is not of type JTAppleCalendarMonthLayout. There was an error in this code section. Please contact the developer on GitHub Assertion failed: file /Users/emma/Documents/appName/Pods/JTAppleCalendar/Sources/JTAppleCalendar/JTACMonthActionFunctions.swift, line 43

I kinda understand the reason of this issue, most probably the layout has been renamed from JTAppleCalendarMonthLayout to JTACMonthLayout , but how can I fix it?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

So I think I might have gotten past the error. I saw in some comment in the pod files that JTAppleCalendarView ‘manages it’s own layout.’ So I removed the UICollectionViewFlowLayout and instead set minimum spacing and cell size with calendar.cellSize and calendar.minimumLineSpacing. I now have a separate issue with the calendar just appearing as a black block, but I’m sure that’s just something to do with me not implementing the cells correctly or something. Thanks for taking a look though!