From 479562b47ff40e1c0e92058984fd03d93649a1f6 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 25 Jul 2020 14:12:17 -0500 Subject: [PATCH] Disable animations on iOS for TimelineItem status changes --- Multiplatform/Shared/Timeline/TimelineView.swift | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Multiplatform/Shared/Timeline/TimelineView.swift b/Multiplatform/Shared/Timeline/TimelineView.swift index b51e7fbe1..d2f965116 100644 --- a/Multiplatform/Shared/Timeline/TimelineView.swift +++ b/Multiplatform/Shared/Timeline/TimelineView.swift @@ -120,13 +120,14 @@ struct TimelineView: View { .onReceive(timelineModel.articleStatusChangePublisher!) { articleIDs in articleIDs.forEach { articleID in if let position = timelineItems.index[articleID] { - if timelineItems.items[position].isReadOnly { - withAnimation { - timelineItems.items[position].updateStatus() - } - } else { +// This will trigger a deselect on iPhones and iPads, so we will disable it for now +// if timelineItems.items[position].isReadOnly { +// withAnimation { +// timelineItems.items[position].updateStatus() +// } +// } else { timelineItems.items[position].updateStatus() - } +// } } } }