Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct StandardCellViewModel: ItemViewModel {
- let title: String
- var reuseIdentifier: String {
- return "cell"
- }
- func setup(_ cell: UICollectionReusableView, in collectionView: UICollectionView, at indexPath: IndexPath) {
- guard let cell = cell as? StandardCell else {
- return
- }
- cell.titleLabel.text = self.title
- }
- }
Add Comment
Please, Sign In to add comment