IF
Size: a a a
IF
ВР
ЕК
D
D

🅰Б
D
D
KK
KK

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath)
if let vc = cell.viewWithTag(111) as? UIImageView{
vc.image = imArr[indexPath.row]
}else if let ab = cell.viewWithTag(222) as? UIPageControl{
ab.currentPage = indexPath.row
}
return cell
}LC

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for: indexPath)
if let vc = cell.viewWithTag(111) as? UIImageView{
vc.image = imArr[indexPath.row]
}else if let ab = cell.viewWithTag(222) as? UIPageControl{
ab.currentPage = indexPath.row
}
return cell
}PM

PM
PM
V
PM
PM