Skip to content

Commit

Permalink
Release 2.0.2 (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeEAaD authored Apr 25, 2024
2 parents 734fa32 + a59e6bf commit 59dda67
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SectionKit/Sources/Utility/UICollectionView+Apply.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ extension UICollectionView {
if reloads.isNotEmpty {
reloadItems(at: reloads.map { IndexPath(item: $0, section: section) })
}
}, completion: { batchOperation.completion?($0) })
}, completion: { [completion = batchOperation.completion] in
completion?($0)
})
}
}

Expand Down Expand Up @@ -108,7 +110,9 @@ extension UICollectionView {
if reloads.isNotEmpty {
reloadSections(IndexSet(reloads))
}
}, completion: { batchOperation.completion?($0) })
}, completion: { [completion = batchOperation.completion] in
completion?($0)
})
}
}
}

0 comments on commit 59dda67

Please sign in to comment.