Closed JayBone16 closed 8 years ago
@JayBone16 Maybe you can manually select the item at the first launch.
self.collectionView?.selectItem(at: IndexPath(row: 1, section: 0), animated: true, scrollPosition: UICollectionViewScrollPosition.left)
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
view.layoutIfNeeded()
collectionView?.selectItem(at: IndexPath(row: <CURRENT_INDEX>, section: 0), animated: true, scrollPosition: .centeredHorizontally)
}
@ober01 Thanks it worked!
How can I have the first index show instead of the zero index?
How It Shows Up When It Runs:
How I want it to start up like: