Skip to content

Library is generating zombie objects #42

@thomasneuteboom

Description

@thomasneuteboom

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions