You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to only give inset and line spacing to SectionControllerAAA.
The problem is: setting inset and line spacing in SectionControllerAAA's initializer does't work. Because it is managed by stackedSectionController (I assumed all cells of all three sub section controllers are combined into a single section controller).
So I set inset and line spacing to the stackedSectionController:
But another problem would be:
Setting inset and line spacing on stackedSectionController would effects all the three section controllers (and top/bottom inset doesn't apply between different sub section controllers) which is obviously not what I want in this case.
So I suggest to enhance IGListKit with the capability of applying different inset or item/line spacing to every section controller of IGListStackedSectionController.
I haven't got a chance look into it yet, so that I don't have the idea how complicated this enhancement would be. If this suggestion makes sense to you guys, I will go ahead try to do this.
The text was updated successfully, but these errors were encountered:
I love this idea, but I think that w/out a heavily customized UICollectionViewLayout that is designed specifically to integrate w/ IGListKit, it'll be almost impossible. UICollectionViewFlowLayout only applies insets to the entire section. The new layout we're introducing in #449 also uses that logic.
We could look into extending the new layout w/ this, but atm I think it's going to be too complicated.
IMO if the sections need to behave that differently, I wonder if they belong in the stack in the first place?
@rnystrom
I looked into source code a little bit earlier today, seems too complicated, not worthy.
Also, my model is too complicated which makes layout complicated. I may need to simplify my model in the first place.
Hello guys, first of all - thanks for the great library!
I want to raise this issue again
Is there any way to make space between SectionControllers inside IGListStackedSectionController ?
Unfortunately we're planning on deprecating IGListStackedSectionController (see #1099), but even if we weren't this would require a custom UICollectionViewLayout.
New issue checklist
README
and documentationGeneral information
IGListKit
version: 2.1.0===============
Let's say I have a stackedSectionController managing three section controllers:
If I want to only give inset and line spacing to
SectionControllerAAA
.The problem is: setting inset and line spacing in
SectionControllerAAA
's initializer does't work. Because it is managed bystackedSectionController
(I assumed all cells of all three sub section controllers are combined into a single section controller).So I set inset and line spacing to the
stackedSectionController
:But another problem would be:
Setting inset and line spacing on
stackedSectionController
would effects all the three section controllers (and top/bottom inset doesn't apply between different sub section controllers) which is obviously not what I want in this case.So I suggest to enhance IGListKit with the capability of applying different inset or item/line spacing to every section controller of IGListStackedSectionController.
I haven't got a chance look into it yet, so that I don't have the idea how complicated this enhancement would be. If this suggestion makes sense to you guys, I will go ahead try to do this.
The text was updated successfully, but these errors were encountered: