I am using a library called VegaScrollFlowLayout that is located on github. I am trying to give an exact index in my collectionView, and present the data starting from that index, but I keep getting a reset back to Index 0 and not Index 10.
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
collectionView.scrollToItem(
at: NSIndexPath(item: 10, section: 0) as IndexPath,
at: [],
animated: false)
}