mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 19:42:13 +00:00
search cancel button transition
This commit is contained in:
1 parent
382ac4cdd0
commit
1d32604c34
1 file changed
+2
-2
@@ -84,6 +84,7 @@ struct ChatListView: View {
|
||||
}
|
||||
.listStyle(.plain)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.navigationBarHidden(searchMode)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .navigationBarLeading) {
|
||||
let user = chatModel.currentUser ?? User.sampleData
|
||||
@@ -126,7 +127,6 @@ struct ChatListView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationBarHidden(searchMode)
|
||||
}
|
||||
|
||||
private func toggleFilterButton() -> some View {
|
||||
@@ -312,7 +312,7 @@ private struct ChatListSearchBar: View {
|
||||
searchMode = false
|
||||
}
|
||||
}
|
||||
.transition(.identity)
|
||||
.transition(.move(edge: .trailing))
|
||||
}
|
||||
}
|
||||
Divider()
|
||||
|
||||
Reference in new issue
Block a user