iOS Development

Alternative Structures for Diffable DataSource Identifier Types

In this article will be described three different structures for implementing Sections and SectionItems of the tableView dataSource.

Efthymios Liapatis

6 minute read

As the application scales up, there is a need for a proper data type structure for diffable dataSource identifier types. The reason is that, the most conventional way as it has been introduced in “Advances in UI Data Sources - WWDC - 2019”, by using struct for Sections and enum for Rows leads to massive switch case statement and duplicated code.