diff --git a/DiffingSectionKit/Sources/DiffingListSectionController.swift b/DiffingSectionKit/Sources/DiffingListSectionController.swift index 4d5cd989..fabea086 100644 --- a/DiffingSectionKit/Sources/DiffingListSectionController.swift +++ b/DiffingSectionKit/Sources/DiffingListSectionController.swift @@ -18,6 +18,7 @@ open class DiffingListSectionController: ListSectio return CollectionViewSectionUpdate( controller: self, batchOperations: changeSet.map(\.sectionBatchOperation), + shouldAnimate: shouldAnimateItems(from: oldData, to: newData), setData: { self.collectionViewItems = $0 }, shouldReload: { $0.count > 100 } ) diff --git a/DiffingSectionKit/Sources/ManualDiffingListSectionController.swift b/DiffingSectionKit/Sources/ManualDiffingListSectionController.swift index 53d42dba..1c5ff1b9 100644 --- a/DiffingSectionKit/Sources/ManualDiffingListSectionController.swift +++ b/DiffingSectionKit/Sources/ManualDiffingListSectionController.swift @@ -49,6 +49,7 @@ open class ManualDiffingListSectionController< return CollectionViewSectionUpdate( controller: self, batchOperations: changeSet.mapData(\.value).map(\.sectionBatchOperation), + shouldAnimate: shouldAnimateItems(from: oldData, to: newData), setData: { self.collectionViewItems = $0 }, shouldReload: { $0.count > 100 } ) diff --git a/SectionKit/Sources/SectionController/Generic/FoundationDiffingListSectionController.swift b/SectionKit/Sources/SectionController/Generic/FoundationDiffingListSectionController.swift index c6a06e07..e4f4054a 100644 --- a/SectionKit/Sources/SectionController/Generic/FoundationDiffingListSectionController.swift +++ b/SectionKit/Sources/SectionController/Generic/FoundationDiffingListSectionController.swift @@ -23,6 +23,7 @@ open class FoundationDiffingListSectionController< return CollectionViewSectionUpdate( controller: self, data: newData, + shouldAnimate: shouldAnimateItems(from: oldData, to: newData), deletes: changes.deletes, inserts: changes.inserts, moves: changes.moves,