Xcode Version : 10.3
I used xib to create a UIView and added a UICollectionView to the UIView.
When I added UICollectionViewCell, it didn't work. Means I can't drag UICollectionViewCell into UICollectionView
The structure I want is like this
UIView(xib) -> UICollectionView(xib) -> UICollectionViewCell(xib)
Of course, I can add UICollectionViewCell with code, but why doesn't it work with xib? Does anyone know the reason?
Thanks



You have to add prototype cells in
UICollectionViewin xib and then change it's class fromUICollectionViewCellto your desired custom class.