Ios swift – How to use didSelectItemAt method with using UICollectionView?
I have a UICollectionViewCompositionalLayout. And I want to change label on cell click. I use this code to do it: func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: MediumTableCell.reuseIdentifier, for: indexPath) as! MediumTableCell cell.title.text = "true"…