Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yehe01 committed Feb 28, 2018
1 parent be06278 commit b7f900a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions YouTube/ViewControllers/MainVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

1 comment on commit b7f900a

@Hussamalsh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg one line of code fixed everything, well done m8

Please sign in to comment.