indeed, for my case, iOS18 the crash point is here,,,
more than 1 dequeue
fix by recheck logic/code-flow
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> MyCell {
let cell1 = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as? MyCell
let cell2 = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as? MyCell
let cell3 = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as? MyCell
let cell4 = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) as? MyCell
return cell1
}
Post
Replies
Boosts
Views
Activity
oneliner fix, in 2024 🤣🤣🤣, hope its useful oneday.
sceneView.gestureRecognizers?.filter{ $0 is UIPanGestureRecognizer}.first?.state = .began
x2 no h3 on iOS16 for me too, on iPhone 14 pro max, 16.1.1
same crash reported,,, iOS 14.5 and 14.6beta