Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit 8698712

Browse files
Merge pull request #219 from robertjpayne/patch-attribute-graph
Fix AttributeGraph Cycle Issues
2 parents ed9edd5 + cf82d2a commit 8698712

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sources/ASCollectionView/Datasource/ASDiffableDataSourceCollectionView.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,15 @@ class ASDiffableDataSourceCollectionView<SectionID: Hashable>: ASDiffableDataSou
4040
self.currentSnapshot = .init(sections: newSections)
4141
}
4242
}
43-
CATransaction.begin()
44-
CATransaction.setCompletionBlock(completion)
4543
if firstLoad || !animated
4644
{
47-
CATransaction.setDisableActions(true)
48-
apply()
45+
UIView.performWithoutAnimation(apply)
4946
}
5047
else
5148
{
5249
apply()
5350
}
54-
CATransaction.commit()
51+
completion?()
5552
firstLoad = false
5653
}
5754

0 commit comments

Comments
 (0)