Answers for "swift uicollectionviewcell how to know when off screen"

1

swift uicollectionviewcell how to know when off screen

func collectionView(_ collectionView: UICollectionView,
                 didEndDisplaying cell: UICollectionViewCell,
                   forItemAt indexPath: IndexPath) {
    if let cell = collectionView.cellForItem(at: indexPath) {
      // Do something
    }
  }
Posted by: Guest on October-26-2020

Code answers related to "swift uicollectionviewcell how to know when off screen"

Code answers related to "Swift"

Browse Popular Code Answers by Language