Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "sizeCell", for: indexPath) as! SizeCollectionViewCell
- if let _ = sizeSelected[indexPath.item]{
- cell.imageView.image = sizesImageClicked[indexPath.item]
- cell.isSelected = true
- orderCollectionView.selectItem(at: indexPath, animated: false, scrollPosition: .centeredHorizontally)
- }
- else{
- cell.imageView.image = sizesImageUnclicked[indexPath.item]
- cell.isSelected = false
- }
- cell.layer.shouldRasterize = true
- cell.layer.rasterizationScale = UIScreen.main.scale
- return cell
Add Comment
Please, Sign In to add comment