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

joseph-francis picture joseph-francis  路  3Comments

PhilCai1993 picture PhilCai1993  路  3Comments

kanumuri9593 picture kanumuri9593  路  3Comments

runmad picture runmad  路  3Comments

kleiberjp picture kleiberjp  路  3Comments