You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}'
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!
The text was updated successfully, but these errors were encountered:
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
orthis.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!
The text was updated successfully, but these errors were encountered: