Here, you're checking "lastAvailableRange.lowerBound" but you're using just after "lastAvailableRange.upperBound"
need to change to check the lastAvailableRange.upperBound ?
if adjustedRange.upperBound > lastAvailableRange.lowerBound {
let availableRange = adjustedRange.upperBound...lastAvailableRange.upperBound
...
}
https://github.com/zjfjack/JZCalendarWeekView/blob/6177be0ddb1257711186b8a282dfef5dcb274786/JZCalendarWeekView/JZWeekViewFlowLayout.swift#L588
Here, you're checking "lastAvailableRange.lowerBound" but you're using just after "lastAvailableRange.upperBound"
need to change to check the lastAvailableRange.upperBound ?
if adjustedRange.upperBound > lastAvailableRange.lowerBound { let availableRange = adjustedRange.upperBound...lastAvailableRange.upperBound ... }
Thanks !