Swift uicollectionViewCell cara mengetahui kapan di luar layar
func collectionView(_ collectionView: UICollectionView,
didEndDisplaying cell: UICollectionViewCell,
forItemAt indexPath: IndexPath) {
if let cell = collectionView.cellForItem(at: indexPath) {
// Do something
}
}
TheKrisinator