diff --git a/Sources/Internals.DiffableDataUIDispatcher.swift b/Sources/Internals.DiffableDataUIDispatcher.swift index 4fc7ac9..8760977 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.swift @@ -106,18 +106,18 @@ extension Internals { } } - #if canImport(QuartzCore) -// -// CATransaction.begin() -// -// if !animatingDifferences { -// -// CATransaction.setDisableActions(true) -// } -// performDiffingUpdates() -// -// CATransaction.commit() -// + #if os(iOS) + + CATransaction.begin() + + if !animatingDifferences { + + CATransaction.setDisableActions(true) + } + performDiffingUpdates() + + CATransaction.commit() + #else performDiffingUpdates()