From d27502ec47a0c8c5f8604e35d9ad1271c623c955 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:12:47 +0400 Subject: [PATCH] ios: restore reveal/hide animation (#3933) * ios: restore reveal/hide animation * remove comment --------- Co-authored-by: Evgeny Poberezkin --- apps/ios/Shared/Views/Chat/ChatView.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/ios/Shared/Views/Chat/ChatView.swift b/apps/ios/Shared/Views/Chat/ChatView.swift index 36d3e318ed..468027ec8a 100644 --- a/apps/ios/Shared/Views/Chat/ChatView.swift +++ b/apps/ios/Shared/Views/Chat/ChatView.swift @@ -979,8 +979,9 @@ struct ChatView: View { title: NSLocalizedString("Hide", comment: "chat item action"), image: UIImage(systemName: "eye.slash") ) { _ in - // With animation it looks bad because of UIKit context menu involved - revealed = false + withAnimation { + revealed = false + } } } @@ -1049,8 +1050,9 @@ struct ChatView: View { title: NSLocalizedString("Reveal", comment: "chat item action"), image: UIImage(systemName: "eye") ) { _ in - // With animation it looks bad because of UIKit context menu involved - revealed = true + withAnimation { + revealed = true + } } }