Question : swift uicollectionviewcell how to know when off screen
Answered by : kristopher-wrobel
func collectionView(_ collectionView: UICollectionView, didEndDisplaying cell: UICollectionViewCell, forItemAt indexPath: IndexPath) { if let cell = collectionView.cellForItem(at: indexPath) { // Do something } }
Source : | Last Update : Mon, 02 Nov 20