Skip to content

Commit

Permalink
correct item size
Browse files Browse the repository at this point in the history
  • Loading branch information
andrespch authored Jan 10, 2017
1 parent 8184980 commit c25c235
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ open class CubicCollectionViewController: UIViewController, UICollectionViewData
let flowLayout = UICollectionViewFlowLayout()
flowLayout.minimumLineSpacing = 0
flowLayout.minimumInteritemSpacing = 0
flowLayout.itemSize = collectionView.bounds.size
flowLayout.itemSize = UIScreen.main.bounds.size
flowLayout.scrollDirection = .horizontal
collectionView.backgroundColor = UIColor.gray
collectionView.collectionViewLayout = flowLayout
Expand Down

0 comments on commit c25c235

Please sign in to comment.