From 6d583ad057577e93ae38ec42e00b7f9c5071ec23 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Mon, 4 Dec 2023 18:52:09 +0000 Subject: [PATCH] no animation --- apps/ios/Shared/Views/ChatList/ChatListView.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/ios/Shared/Views/ChatList/ChatListView.swift b/apps/ios/Shared/Views/ChatList/ChatListView.swift index 85650f53a..34cc441df 100644 --- a/apps/ios/Shared/Views/ChatList/ChatListView.swift +++ b/apps/ios/Shared/Views/ChatList/ChatListView.swift @@ -279,7 +279,6 @@ struct ChatListSearchBar: View { @Binding var searchShowingSimplexLink: Bool @Binding var searchChatFilteredBySimplexLink: String? @State private var ignoreSearchTextChange = false - @State private var cancelVisible = false @State private var pasteboardHasString = false @State private var showScanCodeSheet = false @State private var alert: PlanAndConnectAlert? @@ -343,11 +342,7 @@ struct ChatListSearchBar: View { .environment(\EnvironmentValues.refresh as! WritableKeyPath, nil) // fixes .refreshable in ChatListView affecting nested view } .onChange(of: searchFocussed) { sf in - if sf { - withAnimation { searchMode = true } - } else { - withAnimation { searchMode = false } - } + withAnimation { searchMode = sf } } .onChange(of: searchText) { t in if ignoreSearchTextChange {