I have a UICollectionView in a static UITableView. I'm trying to make the collectionView scroll to an indexPath in viewDidLoad. It's not scrolling to position on startup, when I select an indexPath it scrolls to that position. I made a clean project that produces the problem.
I thought the simplest way to do this was instead of making you to try and recreate the problem, I would just upload it. So here it is: Project with problem
There are only two small problems:
1.The

selectedDatedoes not match with yourdatesarray. Compare the two date in the following image:2.You should update UI in
viewDidAppearas @Omar Al-Shammary said.The Solution: