Last active
February 24, 2021 00:45
-
-
Save karigrooms/e42917923b2711d517f550270751dedb to your computer and use it in GitHub Desktop.
Blog post: SwiftUI with UICollectionView - 11. Sizing our cell via UICollectionViewDelegateFlowLayout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: UICollectionViewDelegateFlowLayout | |
extension CollectionViewExample: UICollectionViewDelegateFlowLayout { | |
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { | |
return CGSize(width: 240, height: 320) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment