-
Couldn't load subscription status.
- Fork 144
Description
I have a CollectionScreen that I'm using to display dates. If I change the dates on the collection and call reload_data, I get the following error:
'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xc000000000e00016> {length = 2, path = 0 - 7}'
The web is full of reports like the following:
http://villageblacksmith.consulting/uicollectionviewcontroller-crashes/
However, calling this.collectionViewLayout.invalidateLayout or this.collectionView.collectionViewLayout.invalidateLayout seems to have no effect.
The error is exactly the same no matter what data I update with (even an empty array).
I've been trying to resolve this for about 24 hours with no progress so I wanted to check in to see if anyone here has thoughts on how to get data reloading properly.
Thanks!