UIAction calling multiple times when tapped on UIButton in CollectionViewCell – Ios swift
When I tap on button it will trigger multiple times. CollectionViewCell file code class PhotoCell: UICollectionViewCell { @IBOutlet weak var deleteButton: UIButton! } ViewController - cellforItemAt method implementation func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { guard let…