diff --git a/YouTube/ViewControllers/MainVC.swift b/YouTube/ViewControllers/MainVC.swift index ea3f792..d1a08ca 100644 --- a/YouTube/ViewControllers/MainVC.swift +++ b/YouTube/ViewControllers/MainVC.swift @@ -79,6 +79,7 @@ class MainVC: UIViewController, UICollectionViewDataSource, UICollectionViewDele func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath) + cell.contentView.frame = collectionView.frame cell.contentView.addSubview(self.views[indexPath.row]) return cell }