AlignedCollectionViewFlowLayout icon indicating copy to clipboard operation
AlignedCollectionViewFlowLayout copied to clipboard

Library is generating zombie objects

Open thomasneuteboom opened this issue 8 months ago • 0 comments

I’m noticing a significant number of zombie objects being generated when using AlignedCollectionViewFlowLayout.

My UICollectionView, its cells, and the owning UIViewController are all being deallocated correctly. It seems the issue lies with copying the layout attributes that is causing these zombie objects.

This issue occurs even with a relatively small dataset (50 items), navigating back and forth for about 10 times:

Image Image

Stack traces lead me to: func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? and func layoutAttributesForElements(in rect: CGRect).

thomasneuteboom avatar Jun 01 '25 19:06 thomasneuteboom