I have created a CollectionView Control and filled it with images. Now I want to scroll to item at a particular index on start. I have tried out scrollToItemA
CollectionView
scrollToItemA
Swift 3
UIView.animate(withDuration: 0.4, animations: { myCollectionview.scrollToItem(at: myIndexPath, at: .centeredHorizontally, animated: false) }, completion: { (value: Bool) in // put your completion stuff here })