Iglistkit: Difference between ListStackedSectionController and ListBindingSectionController

Created on 10 Nov 2017  路  3Comments  路  Source: Instagram/IGListKit

Please could someone explain to me the difference between ListStackedSectionController and ListBindingSectionController and when you would choose one over the other? I've been looking at the documentation and it's a bit ambiguous to me?
Thanks!

question

Most helpful comment

IGListStackedSectionController is a way to build SCs with _child_ SCs. That lets you decompose your controller logic even further into tiny units.

IGListBindingSectionController allows you to model your cells, the number of them _and_ their configuration, with view models. These view models are also diffed, provided cell-level insert/delete/update/move animations! It's my favorite component of this library.

Bear in mind that stacked section controllers are going to be deprecated in 4.0.0. See #1099.

All 3 comments

any update on this? great library @rnystrom and team! I'm building a highly nested collection view myself and I am running into this design decision myself. I've run into some problems trying to nest ListStackedSectionControllers within ListStackedSectionControllers, and it looks like ListBindingSectionController is the more appropriate way to go after reading #872 .

My question now is, in what scenario is ListStackedSectionController more ideal? Am I thinking about this the right way?

IGListStackedSectionController is a way to build SCs with _child_ SCs. That lets you decompose your controller logic even further into tiny units.

IGListBindingSectionController allows you to model your cells, the number of them _and_ their configuration, with view models. These view models are also diffed, provided cell-level insert/delete/update/move animations! It's my favorite component of this library.

Bear in mind that stacked section controllers are going to be deprecated in 4.0.0. See #1099.

Thanks for the clarification @rnystrom!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drinkius picture drinkius  路  3Comments

jessesquires picture jessesquires  路  3Comments

alexwillrock picture alexwillrock  路  3Comments

FazeelAkhtar picture FazeelAkhtar  路  3Comments

rnystrom picture rnystrom  路  3Comments