Skip to content

Instantly share code, notes, and snippets.

@IhwanID
Created February 7, 2023 23:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save IhwanID/681c049eebbf5434e29dc291f71356d2 to your computer and use it in GitHub Desktop.
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