From 3fb2b5927b7aaa6bbe7baa38a69479315a7e96a9 Mon Sep 17 00:00:00 2001 From: David Hansson Date: Tue, 13 Aug 2024 09:47:48 +0200 Subject: [PATCH 1/3] Comment out broken code for Xcode beta --- .../Internals.DiffableDataUIDispatcher.swift | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Sources/Internals.DiffableDataUIDispatcher.swift b/Sources/Internals.DiffableDataUIDispatcher.swift index b3f0237..4fc7ac9 100644 --- a/Sources/Internals.DiffableDataUIDispatcher.swift +++ b/Sources/Internals.DiffableDataUIDispatcher.swift @@ -107,17 +107,17 @@ extension Internals { } #if canImport(QuartzCore) - - CATransaction.begin() - - if !animatingDifferences { - - CATransaction.setDisableActions(true) - } - performDiffingUpdates() - - CATransaction.commit() - +// +// CATransaction.begin() +// +// if !animatingDifferences { +// +// CATransaction.setDisableActions(true) +// } +// performDiffingUpdates() +// +// CATransaction.commit() +// #else performDiffingUpdates() From 9f9ecb48201014cb1811896b63a20ec0f07bf5b7 Mon Sep 17 00:00:00 2001 From: David Hansson Date: Wed, 4 Sep 2024 12:35:08 +0200 Subject: [PATCH 2/3] 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() From 010a79ef6a5240e1e930eb15f12c4c40d1c0efc0 Mon Sep 17 00:00:00 2001 From: David Hansson Date: Wed, 4 Sep 2024 12:55:24 +0200 Subject: [PATCH 3/3] 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