SyntaxFix
Write A Post
Hire A Developer
Questions
As an alternative to mentioned above. Call after data load:
Swift
collectionView.reloadData() collectionView.layoutIfNeeded() collectionView.selectItem(at: indexPath, animated: true, scrollPosition: .right)