mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-29 07:38:54 +00:00
ios: fix chatlist search bar appearing in chat view (#1119)
This commit is contained in:
@@ -18,21 +18,19 @@ struct ChatListView: View {
|
||||
@State private var showAddChat = false
|
||||
|
||||
var body: some View {
|
||||
let v = NavigationView {
|
||||
NavigationView {
|
||||
VStack {
|
||||
if chatModel.chats.isEmpty {
|
||||
onboardingButtons()
|
||||
}
|
||||
chatList
|
||||
if chatModel.chats.count > 8 {
|
||||
chatList.searchable(text: $searchText)
|
||||
} else {
|
||||
chatList
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationViewStyle(.stack)
|
||||
|
||||
if chatModel.chats.count > 8 {
|
||||
v.searchable(text: $searchText)
|
||||
} else {
|
||||
v
|
||||
}
|
||||
}
|
||||
|
||||
var chatList: some View {
|
||||
|
||||
Reference in New Issue
Block a user