Skip to content

Instantly share code, notes, and snippets.

@koromiko
Created October 5, 2017 12:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koromiko/97e95db0a30d9b6100a4b96f1a2d21f7 to your computer and use it in GitHub Desktop.
Save koromiko/97e95db0a30d9b6100a4b96f1a2d21f7 to your computer and use it in GitHub Desktop.
private var cellViewModels: [PhotoListCellViewModel] = [PhotoListCellViewModel]() {
didSet {
self.reloadTableViewClosure?()
}
}
var numberOfCells: Int {
return cellViewModels.count
}
func getCellViewModel( at indexPath: IndexPath ) -> PhotoListCellViewModel
var isLoading: Bool = false {
didSet {
self.updateLoadingStatus?()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment