Open ahmtkocamn opened 5 years ago
Did you solve it? We are trying to do the same thing but it crashes...
Same here
Any news about this? We used an ugly/unsafe workaround for now... But It's not stable
I have solved it by using following code by setting ContentOffset of collection view.
self.cv_Status.setContentOffset(CGPoint(x:collection_Cell_Width * currnt_Index, y: 0), animated: true)
extension UICollectionView {
func scrollToIndex(index:Int,section:Int){
let indexPath = IndexPath(row: index, section: section)
self.selectItem(at: indexPath, animated: true, scrollPosition: .centeredHorizontally)
}
}
Hi, I want the cells to start at 3. How can I do that.