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

Commit

Permalink
Merge pull request #219 from robertjpayne/patch-attribute-graph
Browse files Browse the repository at this point in the history
Fix AttributeGraph Cycle Issues
  • Loading branch information
apptekstudios authored Sep 22, 2021
2 parents ed9edd5 + cf82d2a commit 8698712
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,15 @@ class ASDiffableDataSourceCollectionView<SectionID: Hashable>: ASDiffableDataSou
self.currentSnapshot = .init(sections: newSections)
}
}
CATransaction.begin()
CATransaction.setCompletionBlock(completion)
if firstLoad || !animated
{
CATransaction.setDisableActions(true)
apply()
UIView.performWithoutAnimation(apply)
}
else
{
apply()
}
CATransaction.commit()
completion?()
firstLoad = false
}

Expand Down

0 comments on commit 8698712

Please sign in to comment.