From 010a79ef6a5240e1e930eb15f12c4c40d1c0efc0 Mon Sep 17 00:00:00 2001 From: David Hansson Date: Wed, 4 Sep 2024 12:55:24 +0200 Subject: [PATCH] Reverse check, as only watch os is having troubles --- .../Internals.DiffableDataUIDispatcher.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Sources/Internals.DiffableDataUIDispatcher.swift b/Sources/Internals.DiffableDataUIDispatcher.swift index 8760977..9c7f52c 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.swift @@ -106,21 +106,21 @@ extension Internals { } } - #if os(iOS) + #if os(watchOS) - CATransaction.begin() - - if !animatingDifferences { - - CATransaction.setDisableActions(true) - } performDiffingUpdates() - CATransaction.commit() - #else + CATransaction.begin() + + if !animatingDifferences { + + CATransaction.setDisableActions(true) + } performDiffingUpdates() + + CATransaction.commit() #endif