I am using UICollectionView using the flow layout. I have made a custom UICollectionViewCell for the same. But on running the project the console k
UICollectionView
UICollectionViewCell
What caused this for me was that I was trying to set my cells to the size of the superview rather than the size of the UICollectionView. Simply replaced the superview frame with the UICollectionView frame.