mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-27 22:34:51 +00:00
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:
co-authored by
Evgeny Poberezkin
parent
655ad4d813
commit
d27502ec47
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user