This is driving me crazy! I have a UICollectionViewController
as shown below:
class PhrasesCompactCollectionViewController: UICollectionViewController
The numberOfSections
and cellForItemAt
are being called but the sizeForItemAtIndexPath
is never called. I am using the same exact code somewhere else and it fires correctly. I am using Xcode 8 Beta 6.
func collectionView(collectionView: UICollectionView,
layout collectionViewLayout: UICollectionViewLayout,
sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
return CGSize(width: 120, height:120)
}