Created
April 13, 2019 01:51
-
-
Save laevandus/0ecf4033ddd8816d98ad9f3d55dfa0e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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