Skip to content

Commit a30b14e

Browse files
author
Stephane Magne
authored
Merge pull request #7 from scribd/stephane/respect_animation_flags_pt2
Update to use targetView
2 parents d1c7dce + 8ed8021 commit a30b14e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LiveCollectionsFramework/LiveCollections/Classes/Internal/ItemDataCalculator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private extension ItemDataCalculator {
223223
}
224224

225225
let itemAnimationStlye: AnimationStyle = {
226-
if view.frame.isEmpty { return .reloadData }
226+
if targetView.frame.isEmpty { return .reloadData }
227227
guard let animationDelegate = animationDelegate else { return .preciseAnimations }
228228
return animationDelegate.preferredItemAnimationStyle(for: delta)
229229
}()
@@ -334,7 +334,7 @@ private extension ItemDataCalculator {
334334
}
335335

336336
let itemAnimationStlye: AnimationStyle = {
337-
if view.frame.isEmpty { return .reloadData }
337+
if targetView.frame.isEmpty { return .reloadData }
338338
guard let animationDelegate = animationDelegate else { return .preciseAnimations }
339339
return animationDelegate.preferredItemAnimationStyle(for: delta)
340340
}()

0 commit comments

Comments
 (0)