Repository navigation
7.5.0
A list can use its own layout subclass: DiffableListController and DiffableListView get init(layout:) next to init(appearance:). Pass a DiffableListLayout subclass, for example one with its own layoutAttributesClass that hands extra per-item data to cells in apply(_:). The subclass reads the list's data source through DiffableListLayout.dataSource to find the section and item at an index path.