collectionView(_:layout:didCenterCellAt:)
Tells the delegate when a cell has completed the transition and has become the center cell.
Declaration
optional func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, didCenterCellAt indexPath: IndexPath)