From 9f9ecb48201014cb1811896b63a20ec0f07bf5b7 Mon Sep 17 00:00:00 2001 From: David Hansson Date: Wed, 4 Sep 2024 12:35:08 +0200 Subject: [PATCH] Only available for iOS --- .../Internals.DiffableDataUIDispatcher.swift | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) 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()