I try to transfer the values when I click on the collection cell, but when I collect the project and click on the cell, the application crashes
reason: '-[UICollectionViewController loadView] instantiated view controller with identifier "UIViewController-hLg-LT-DtA" from storyboard "Main", but didn't get a UICollectionView.'
The function of opening another controller in another storyboard ... What he writes that he doesn’t see the UICollectionView is how I can specify it ... tk it turns out that he gets to the required controller, and then he doesn’t see
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { print("Cell \(indexPath.row) selected") let storyBoard = UIStoryboard(name: "Catalog", bundle: nil) let catalogCVC = storyBoard.instantiateViewController(withIdentifier: "CatalogCollectionViewController") as! CatalogCollectionViewController self.navigationController?.pushViewController(catalogCVC, animated: true) } 
