Open reza-khalafi opened 5 years ago
func scrollViewDidScroll(_ scrollView: UIScrollView) {
let centerPoint = CGPoint(x: collectionView.bounds.midX , y: collectionView.bounds.midY)
if let indexPath = collectionView.indexPathForItem(at: centerPoint) {
//bla bla
}
}
Hi.
I want to get center index in this collection view at default mode or after scroll.
How to get it?