Skip to content

Commit

Permalink
Always display search bar in ContactsView
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
2 people authored and tmolitor-stud-tu committed Aug 29, 2024
1 parent 88f247d commit 9664621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Monal/Classes/ContactsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9664621

Please sign in to comment.