Skip to content

Commit f95f809

Browse files
author
Stephane Magne
authored
Merge pull request #8 from scribd/stephane/respect_animation_flags_pt3
Return early for .reloadData.
2 parents a30b14e + 96c09ee commit f95f809

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

LiveCollectionsFramework/LiveCollections/Classes/Internal/ItemDataCalculator.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ private extension ItemDataCalculator {
233233
updateData()
234234
targetView.reloadData()
235235
calculationCompletion()
236+
return
236237

237238
case .reloadSections,
238239
.preciseAnimations:
@@ -344,6 +345,8 @@ private extension ItemDataCalculator {
344345
updateData()
345346
targetView.reloadData()
346347
calculationCompletion()
348+
return
349+
347350
case .reloadSections,
348351
.preciseAnimations:
349352
// Short circuit if there are too many items

0 commit comments

Comments
 (0)