Closed kwstasna closed 7 years ago
Ok as i understand by searching previous issues, there is this
https://github.com/Instagram/IGListKit/issues/31
and
https://github.com/Instagram/IGListKit/milestone/3
So is this gonna be a feature in 3.0.0 ? @rnystrom
Hey @kwstasna sorry I didn't come back to this. Yup! We're planning on making nested lists a lot easier w/ a base class that handles a lot of the common setup for you in 3.0.0. We haven't started on this yet, but we will definitely get to it!
Have you taken a look at our example of nested adapters?
Yes I'm trying to make it work but it seems that i'm doing something wrong but i can't figure out what.
So i have 3 section controllers. 1) For the vertical collection view. (NormalSectionController) 2) For the horizontal items (WeekendSectionController) 3) The section controller that contains the items from (2) i think here is the issue (HorizontalSectionController)
I've uploaded a demo project here
https://www.dropbox.com/s/5i6w2878296tsfo/ig-event%202.zip?dl=0
If you have the time to take a look at the 3rd section controller
in the func objects(for listAdapter: IGListAdapter) -> [IGListDiffable]
I don't know exactly what should i return because in your example you return some Int from 0 to the number that is in data
.
The expected result from my code is to have the first Section of the collection view a height of 170px and horizontal scrolling and second Section to have vertical scrolling.
The demo result show's a large white section with no items and after the white section, there is the second section normal as it has to be.
Thanks a lot for your time and for your contribution. To be honest even with the second section only i've seen a drop of the memmory usage than my tableview that i hade before.
Really nice work :smile:
Nevermind. I followed up those 2 brilliant tutorials from @kzin
And on the 2nd post https://medium.com/cocoaacademymag/how-to-improve-your-iglistcollectionview-e13afe06dfeb#.96jco89om
He explains how to do it.
Although it took me some hours, hope on your next update you will make things a bit easier for the beginners :heart:
Hi @kwstasna. Is that possible to take a look at the solution you came to? I'm that beginner you've mentioned above ) Fighting days already with the same task.
New issue checklist
README
and documentationGeneral information
IGListKit
version: 2.0.0So i have 2 section controllers
This shows horizontal scrolling cells.
And this section
This is vertical scrolling cells.
In my ViewController, i would like the user to scroll vertically to the hole view but with this VC that i created, the user can scroll ONLY at the 2nd section.
So what i'm trying to make is exactly as Instagram works.
I've tried to add a scrollview to the view but didn't work out well at all. Is there any suggestion of how to combine 2 sections in one vertical scrolling collection view?