diff --git a/SectionKit/Sources/Utility/UICollectionView+Apply.swift b/SectionKit/Sources/Utility/UICollectionView+Apply.swift index d1c7aceb..ab250cf4 100644 --- a/SectionKit/Sources/Utility/UICollectionView+Apply.swift +++ b/SectionKit/Sources/Utility/UICollectionView+Apply.swift @@ -54,7 +54,7 @@ extension UICollectionView { if reloads.isNotEmpty { reloadItems(at: reloads.map { IndexPath(item: $0, section: section) }) } - }, completion: batchOperation.completion) + }, completion: { batchOperation.completion?($0) }) } } @@ -108,7 +108,7 @@ extension UICollectionView { if reloads.isNotEmpty { reloadSections(IndexSet(reloads)) } - }, completion: batchOperation.completion) + }, completion: { batchOperation.completion?($0) }) } } }