Skip to content

Instantly share code, notes, and snippets.

Created February 7, 2023 23:35
What would you like to do?
Self Sizing CollectionView
if let collectionViewLayout = collectionView.collectionViewLayout as? UICollectionViewFlowLayout {
collectionViewLayout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment