UICollectionView sticky header disappears for while after inserting section when collection is overscrolled (bounce effect)
问题 I'm using UICollectionReusableView as a header of UICollectionView section. I enabled "sticky headers" with: let layout = collectionView.collectionViewLayout as? UICollectionViewFlowLayout layout?.sectionHeadersPinToVisibleBounds = true I'm inserting new sections to collection with: collectionView.performBatchUpdates({ self.collectionView.insertSections(IndexSet(integersIn: collectionView.numberOfSections...viewModel.numberOfSections - 1)) }, completion: nil) If the insertion happens when