Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

detect end of scroll in UICollectionView ios swift

func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
    for cell in yourCollectionView.visibleCells {
        let indexPath = yourCollectionView.indexPath(for: cell)
        print(indexPath)
    }
}
 
PREVIOUS NEXT
Tagged: #detect #scroll #UICollectionView #ios #swift
ADD COMMENT
Topic
Name
7+9 =