Im facing issue that is related to scroll to IndexPath after collection view snapshot applied.
For this I have write bellow code
dataSource.apply(snapshot, animatingDifferences: false, completion: {
self.scrollToIndex(self.visibleIndex)
})
Unfortunately it is not working for me in < iOS 15
Note: Working for iOS 15 and greater versions
2
Answers
You can Use this
Try performing the scroll operation after a short delay: