How can i find indexPath for cell in the middle of UICollectionView?
indexPath
cell
UICollectionView
I have horizontal scrolling and only one big cell<
cell<
Swift 4
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) { let indexPath = collectionView.indexPathForItem(at: collectionView.bounds.center) }