I assume the instagram profile page use IGListKit in some capacity. But I can't understand how to implement it.
Specifically:
How would I create the tabbed section where you can swipe to the left/right to see my photos, or photos I'm tagged in? The best I've come up with so far is to have an array of "imageViewModels" and when I tap a different tab, the "imageViewModels" list is swapped with the view models for the current tab. But this doesn't allow left - right swiping.
I tried using an embedded horizontal collection view, but that makes the maintaining the vertical scroll position difficult - e.g. what if you're scrolled to the bottom of the "my photos" tab, but then swipe right to the "photos I'm tagged in" tab, and the "photos I'm tagged in" tab is significantly bigger/smaller height wise than the "my photos" tab..
The "calendar example" seems to be the most similar to this use case, where every day in the calendar is a tab, and the appointments list is like the list of "photos", but is this approach scalable? I.e. what if there were 1k appointments for a certain day in the example? Assuming I implement pagination, are there any performance concerns with having a really large binding section controller?
If you didn't need horizontal scrolling, this is probably the way I'd recommend as well, as its easy to just reload a section with updated data.
I think to fix this issue you'd need another layer. You'd need a horizontal collection for the bottom section, which then contains a vertical collection for each individual tab so you can continue scrolling down in each one
I assume the instagram profile page use IGListKit in some capacity. But I can't understand how to implement it.
Specifically: