Closed omate94 closed 4 years ago
Still facing issue for second cell, but working fine for other cells. When on second cell after navigating back cell is centered but row value is return 0 which should be 1.
Below code for reference: func scrollViewDidScroll(_ scrollView: UIScrollView) { carouselView.didScroll() guard let currentCenterIndex = carouselView.currentCenterCellIndex?.row else { return } print(currentCenterIndex) pageControl.currentPage = currentCenterIndex }
As per the readme
Set your UIViewController as the collection view delegate and implement the UIScrollViewDelegate method scrollViewDidScroll(:). In this method, call the didScroll() method of ScalingCarouselView
After navigation the cell is not centered. Just after I add scaling carousel view inset.