Last active
May 5, 2018 21:54
-
-
Save wingchi/65ac841a2a8bc60ec76a78171ca16741 to your computer and use it in GitHub Desktop.
Grid View Model with basic method signature
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
import UIKit | |
class GridViewModel { | |
static var itemMargin: CGFloat = 8.0 | |
var data: [Int] = (1...10).map { $0 } | |
func cellSize(for frame: CGRect, at indexPath: IndexPath) -> CGSize { | |
return CGSize(width: 0, height: 0) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment