Post

Replies

Boosts

Views

Activity

Reply to UICollectionViewCompositionalLayout incorrect item size
I have been experiencing the same issue with a compositional layout containing diverse layout sections with differing cell sizes. It seems to only occur with list cells when they are reloaded, so it occurred to me that the cell may not be updating its size on reuse. Overriding the prepare for reuse to invalidate the intrinsic content size seems to be working so far... extension UICollectionViewListCell {        override open func prepareForReuse() {         super.prepareForReuse()         invalidateIntrinsicContentSize()     } }
Nov ’21