Skip to content

7.5.0

Choose a tag to compare

@ivanvorobei ivanvorobei released this 18 Nov 12:56
· 6 commits to main since this release

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.