centered-collectionview-layout icon indicating copy to clipboard operation
centered-collectionview-layout copied to clipboard

Inserting item via CollectionView.insertItems gives Jerk effect

Open SureshSc opened this issue 6 years ago • 1 comments

SureshSc avatar Jul 11 '18 07:07 SureshSc

Yes I noticed this. I presume implementing the missing required methods would fix the issue, but I didn't have the time to test this. By the docs:

Every layout object should implement the following methods:

  • collectionViewContentSize
  • layoutAttributesForElements(in:)
  • layoutAttributesForItem(at:)
  • layoutAttributesForSupplementaryView(ofKind:at:) (if your layout supports supplementary views)
  • layoutAttributesForDecorationView(ofKind:at:) (if your layout supports decoration views)
  • shouldInvalidateLayout(forBoundsChange:)

dejanskledar avatar Oct 03 '18 06:10 dejanskledar