From 9664621aa6544b7c4c315033566225beef77afae Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Thu, 29 Aug 2024 20:50:34 +0100 Subject: [PATCH] Always display search bar in ContactsView When we open the contacts view, our main intent is to find a specific contact to chat with. As a result, the search bar should always be visible, so we can find the contact quickly. Thank you lissine for catching this change in behaviour compared to the old version. Co-authored-by: lissine --- Monal/Classes/ContactsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Monal/Classes/ContactsView.swift b/Monal/Classes/ContactsView.swift index cb22805af..1562efe6e 100644 --- a/Monal/Classes/ContactsView.swift +++ b/Monal/Classes/ContactsView.swift @@ -143,7 +143,7 @@ struct ContactsView: View { .animation(.default, value: contactList) .navigationTitle("Contacts") .listStyle(.plain) - .searchable(text: $searchText) + .searchable(text: $searchText, placement: .navigationBarDrawer(displayMode: .always)) .autocorrectionDisabled() .textInputAutocapitalization(.never) .keyboardType(.emailAddress)