I use a custom CollectionViewCell in my Storyboard. When I start the app I get this message:
Could not cast value of type \'UICollectionViewCell\' to T
self.collectionView! .register(MyCollectionViewCell.self, forCellWithReuseIdentifier: reuseIdentifier )
You don't have to delete this line. You will register your own cell class inherited by UICollectionViewCell.self if you want to register class using code
UICollectionViewCell.self