Skip to content

Commit

Permalink
Merge branch 'develop' into Compositional-layout-support
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinChangCC authored May 21, 2024
2 parents 7c20ef3 + 6ab82ff commit 0d51914
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ GEM
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
gh_inspector (1.1.3)
git (1.11.0)
git (1.19.1)
addressable (~> 2.8)
rchardet (~> 1.8)
google-apis-androidpublisher_v3 (0.19.0)
google-apis-core (>= 0.4, < 2.a)
Expand Down
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 0d51914

Please sign in to comment.