From e47f746eceb579f97966572de4d3a9d826748e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20P=C5=82atek?= Date: Tue, 10 Jan 2023 15:22:34 +0100 Subject: [PATCH] Fixes wrong index path sometimes being provided after performBatchUpdates --- .../CollectionView/CollectionViewItemsController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/CombineDataSources/CollectionView/CollectionViewItemsController.swift b/Sources/CombineDataSources/CollectionView/CollectionViewItemsController.swift index efeb2f9..a614d0d 100644 --- a/Sources/CombineDataSources/CollectionView/CollectionViewItemsController.swift +++ b/Sources/CombineDataSources/CollectionView/CollectionViewItemsController.swift @@ -84,7 +84,9 @@ public class CollectionViewItemsController: NSObject, UICollecti } } collection = items - }, completion: nil) + }, completion: { [weak self] _ in + self?.collectionView.reloadData() + }) } // MARK: - UITableViewDataSource protocol