Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created April 13, 2019 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/0ecf4033ddd8816d98ad9f3d55dfa0e2 to your computer and use it in GitHub Desktop.
Save laevandus/0ecf4033ddd8816d98ad9f3d55dfa0e2 to your computer and use it in GitHub Desktop.
final class CollectionViewController: UICollectionViewController {
let content: [String]
init(content: [String]) {
self.content = content
let layout = UICollectionViewFlowLayout()
layout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize
super.init(collectionViewLayout: layout)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment