Skip to content

Commit

Permalink
Fix compile error on Xcode 14.3 (#107)
Browse files Browse the repository at this point in the history
This PR fixes a compile error on Xcode 14.3, for some reason the type
checker fails to evaluate the expression (it may have something to do
with the `@MainActor` annotation on the `completion` block).
  • Loading branch information
Niclas authored Apr 5, 2023
2 parents 91c5615 + c7c79c7 commit 264ec44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SectionKit/Sources/Utility/UICollectionView+Apply.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) })
}
}

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

0 comments on commit 264ec44

Please sign in to comment.