Closed dhawanheena26 closed 1 year ago
is this production or dev?
i need more log info. The ones you posted is not sufficient to tell me anything.
Also, we have 8.0.5 version for the latest iOS. let me know
We created a sample project to replicate this with version 8.0.5
Issues faced on this sample project:
headerViewForDateRange
function") - This causes crash, though we have implemented all required methods (size methods)After commenting this assert function
Zip file for sample project : headersCrash.zip
According to the code you gave me, you didnt implement the function.
You have implemented this:
private func calendar(_ calendar: JTACMonthView, headerViewForDateRange range: (start: Date, end: Date), at indexPath: IndexPath) -> JTACMonthReusableView? {
// code ....
}
But the real function should instead be this:
func calendar(_ calendar: JTACMonthView, headerViewForDateRange range: (start: Date, end: Date), at indexPath: IndexPath) -> JTACMonthReusableView {
// code ...
}
private
and set it as internal
JTACMonthReusableView?
and make it non optional JTACMonthReusableView
UIKitCore 0x198c58 -[UICollectionViewData layoutAttributesForSupplementaryElementOfKind:atIndexPath:] UIKitCore 0x163520 -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] UIKitCore 0x1d7a5c -[UICollectionView dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath:]
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Calendar crashes on iOS 17 beta on line dequeueReusableSupplementaryViewOfKind - month header view
App should not crash