Reload header of collection UIKit

PHOTO EMBED

Mon Jun 26 2023 04:13:17 GMT+0000 (Coordinated Universal Time)

Saved by @xdien #swift

let context = UICollectionViewFlowLayoutInvalidationContext()
context.invalidateSupplementaryElements(ofKind: UICollectionView.elementKindSectionHeader, at: [IndexPath(row: 0, section: 0)])
friendsListTableView.collectionViewLayout.invalidateLayout(with: context)
content_copyCOPY