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 --- Sources/Internals.DiffableDataUIDispatcher.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/Internals.DiffableDataUIDispatcher.swift b/Sources/Internals.DiffableDataUIDispatcher.swift index 87609779..9c7f52c7 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.swift @@ -106,22 +106,22 @@ extension Internals { } } - #if os(iOS) + #if os(watchOS) - CATransaction.begin() + performDiffingUpdates() - if !animatingDifferences { + #else + CATransaction.begin() + + if !animatingDifferences { + CATransaction.setDisableActions(true) } performDiffingUpdates() - + CATransaction.commit() - #else - - performDiffingUpdates() - #endif }