Skip to content

Commit 3ec4a52

Browse files
committed
Fix compilation on Swift < 5.3
It appears to have been using the new multiple trailing closure syntax and so caused a compilation error on Swift 5.2 and below
1 parent 40e45e9 commit 3ec4a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ComposedUI/CollectionView/CollectionCoordinator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ extension CollectionCoordinator: SectionProviderMappingDelegate {
221221

222222
public func mappingDidEndUpdating(_ mapping: SectionProviderMapping) {
223223
assert(Thread.isMainThread)
224-
collectionView.performBatchUpdates {
224+
collectionView.performBatchUpdates({
225225
if defersUpdate {
226226
prepareSections()
227227
}
@@ -235,7 +235,7 @@ extension CollectionCoordinator: SectionProviderMappingDelegate {
235235
sectionUpdates.forEach { $0() }
236236
reset()
237237
defersUpdate = false
238-
}
238+
})
239239
}
240240

241241
public func mapping(_ mapping: SectionProviderMapping, didUpdateSections sections: IndexSet) {

0 commit comments

Comments
 (0)