I'm trying to add a collection view this way but cells are not being displayed. Cell is created through storyboard nib, all a get is constraints warnings in console.
` let collectionView : UICollectionView = {
let layout = UICollectionViewFlowLayout()
let cv = UICollectionView(frame: .zero, collectionViewLayout: layout)
I'm trying to add a collection view this way but cells are not being displayed. Cell is created through storyboard nib, all a get is constraints warnings in console.
` let collectionView : UICollectionView = { let layout = UICollectionViewFlowLayout() let cv = UICollectionView(frame: .zero, collectionViewLayout: layout)
// collectionView.register(CategoriesCollectionViewCell.self, forCellWithReuseIdentifier: "CategoriesCell")