ios: restore reveal/hide animation (#3933)

* ios: restore reveal/hide animation

* remove comment

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
spaced4ndy
2024-03-21 19:12:47 +00:00
committed by GitHub
co-authored by Evgeny Poberezkin
parent 655ad4d813
commit d27502ec47
+6 -4
View File
@@ -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
}
}
}