in application/PhotoToSketch/PhotoToSketch/EffectApplyScreen/EffectApplyViewController.swift [144:163]
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
if(collectionView == rulerSliderCollectionView){
if(indexPath.row == 0 || indexPath.row == 11){
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "emptyCellId", for: indexPath) as! IntensityEmptyCollectionViewCell
return cell
}else{
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cellId", for: indexPath) as! IntensityCollectionViewCell
return cell
}
}else{
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cellId", for: indexPath) as! EffectCollectionViewCell
cell.loaderIndicator.startAnimating()
cell.img.image = allGlobalPhotoEffects[indexPath.row].coverImage
cell.img.layer.cornerRadius = 6
cell.img.clipsToBounds = true
cell.titleLabel.text = allGlobalPhotoEffects[indexPath.row].name
cell.titleLabel.adjustsFontSizeToFitWidth = true
return cell
}
}