Last active
May 5, 2018 22:40
-
-
Save wingchi/72c7fb4ba5626aa42ffb1c4a619bf34c to your computer and use it in GitHub Desktop.
Using grid layout logic in view controller
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
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, | |
| sizeForItemAt indexPath: IndexPath) -> CGSize { | |
| return gridViewModel.cellSize(for: collectionView.bounds, at: indexPath) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment