Question : detect end of scroll in UICollectionView ios swift
Answered by : nayan-dave
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) { for cell in yourCollectionView.visibleCells { let indexPath = yourCollectionView.indexPath(for: cell) print(indexPath) }
}
Source : | Last Update : Thu, 02 Jun 22