-
Notifications
You must be signed in to change notification settings - Fork 198
Open
Description
If the UICollectionViewCell being updated is not visible, the update will trigger wrong cell type:
case .update(let indexPath, let object):
guard let cell = self.collectionView.cellForItem(at: indexPath) as? Cell else { fatalError("wrong cell type") }
self.delegate.configure(cell, for: object)
I'm sure there must be a reason, but why not use this instead:
case .update(let indexPath, let object):
self.collectionView.reloadItems(at: [indexPath])
Metadata
Metadata
Assignees
Labels
No labels