Guest User

Untitled

a guest
Oct 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. struct StandardCellViewModel: ItemViewModel {
  2.  
  3. let title: String
  4.  
  5. var reuseIdentifier: String {
  6. return "cell"
  7. }
  8.  
  9. func setup(_ cell: UICollectionReusableView, in collectionView: UICollectionView, at indexPath: IndexPath) {
  10. guard let cell = cell as? StandardCell else {
  11. return
  12. }
  13. cell.titleLabel.text = self.title
  14. }
  15. }
Add Comment
Please, Sign In to add comment