ScrollStackController icon indicating copy to clipboard operation
ScrollStackController copied to clipboard

UICollectionView inside child view controller does not reuse cell properly

Open nhanthien211 opened this issue 2 years ago • 1 comments

I have created a simple UIViewController which contains a UICollectionView display a list of 10 object. The UICollectionView has a flow layout with vertical direction.

When putting the child VC into the ScrollStackController, the Allocation instrument of xcode tells me that all 10 instances of that cell class are created. If I just add a single child VC directly to the parent VC, UICollectionView will reuse properly, which means only 4-5 instances of UICollectionView are created according to Allocation instrument.

Is this an expected behavior with the library or I am just messing something up?

nhanthien211 avatar Nov 16 '21 18:11 nhanthien211

have you got a simple project to replicate the issue? thanks!

malcommac avatar Feb 12 '22 15:02 malcommac

closing due to inactivity

malcommac avatar Jul 19 '23 05:07 malcommac