Skip to content

Instantly share code, notes, and snippets.

@froggomad
Created June 19, 2021 17:44
Show Gist options
  • Save froggomad/938b482316e17fcc35f3437c4e2e1ca9 to your computer and use it in GitHub Desktop.
Save froggomad/938b482316e17fcc35f3437c4e2e1ca9 to your computer and use it in GitHub Desktop.
private lazy var collectionView: UICollectionView = {
let collectionView = UICollectionView(frame: .zero, collectionViewLayout: Layout())
collectionView.register(ProduceCollectionViewCell.self, forCellWithReuseIdentifier: ProduceCollectionViewCell.identifier)
collectionView.dataSource = self
collectionView.translatesAutoresizingMaskIntoConstraints = false
return collectionView
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment