Guest User

Untitled

a guest
Jun 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "sizeCell", for: indexPath) as! SizeCollectionViewCell
  2. if let _ = sizeSelected[indexPath.item]{
  3. cell.imageView.image = sizesImageClicked[indexPath.item]
  4. cell.isSelected = true
  5. orderCollectionView.selectItem(at: indexPath, animated: false, scrollPosition: .centeredHorizontally)
  6. }
  7. else{
  8. cell.imageView.image = sizesImageUnclicked[indexPath.item]
  9. cell.isSelected = false
  10. }
  11. cell.layer.shouldRasterize = true
  12. cell.layer.rasterizationScale = UIScreen.main.scale
  13. return cell
Add Comment
Please, Sign In to add comment