kishikawakatsumi / IBPCollectionViewCompositionalLayout

Backport of UICollectionViewCompositionalLayout to earlier iOS 12
MIT License
1.55k stars 148 forks source link

Not clearing nested collection views on `setCollectionViewLayout(_:animated:)` #117

Open gapl opened 5 years ago

gapl commented 5 years ago

Whenever you call collectionView.setCollectionViewLayout(layout, animated: false) with a layout that contains a horizontal scrolling section, a new collection view gets added for the horizontal scrolling section, but older collection views are not removed.

This results in "ghost" views being displayed in the view.

Quick way to replicate