search
This commit is contained in:
parent
36759022a1
commit
c60358c7de
@ -86,16 +86,6 @@ struct TopBarView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if isChatsTab {
|
} else if isChatsTab {
|
||||||
// Кнопка поиска
|
|
||||||
Button(action: {
|
|
||||||
// пока ничего не делаем
|
|
||||||
}) {
|
|
||||||
Image(systemName: "magnifyingglass")
|
|
||||||
.imageScale(.large)
|
|
||||||
.foregroundColor(.primary)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Кнопка поиска
|
|
||||||
Button(action: {
|
Button(action: {
|
||||||
NotificationCenter.default.post(name: .debugRefreshChats, object: nil)
|
NotificationCenter.default.post(name: .debugRefreshChats, object: nil)
|
||||||
}) {
|
}) {
|
||||||
|
|||||||
@ -39,13 +39,12 @@ struct ChatsTab: View {
|
|||||||
|
|
||||||
private var chatList: some View {
|
private var chatList: some View {
|
||||||
List {
|
List {
|
||||||
VStack(spacing: 0) {
|
// VStack(spacing: 0) {
|
||||||
searchBar
|
// searchBar
|
||||||
.padding(.horizontal, 16)
|
// .padding(.horizontal, 16)
|
||||||
.padding(.top, 8)
|
// .padding(.vertical, 8)
|
||||||
.padding(.bottom, 8)
|
// }
|
||||||
}
|
// .background(Color(UIColor.systemBackground))
|
||||||
.background(Color(UIColor.systemBackground))
|
|
||||||
|
|
||||||
if let message = viewModel.errorMessage {
|
if let message = viewModel.errorMessage {
|
||||||
Section {
|
Section {
|
||||||
@ -116,16 +115,16 @@ struct ChatsTab: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.listStyle(.plain)
|
.listStyle(.plain)
|
||||||
// .safeAreaInset(edge: .top) {
|
.safeAreaInset(edge: .top) {
|
||||||
// VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
// searchBar
|
searchBar
|
||||||
// .padding(.horizontal, 16)
|
.padding(.horizontal, 16)
|
||||||
// .padding(.top, 8)
|
.padding(.top, 8)
|
||||||
// .padding(.bottom, 8)
|
.padding(.bottom, 8)
|
||||||
// Divider()
|
Divider()
|
||||||
// }
|
}
|
||||||
// .background(Color(UIColor.systemBackground))
|
.background(Color(UIColor.systemBackground))
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private var searchBar: some View {
|
private var searchBar: some View {
|
||||||
@ -145,7 +144,8 @@ struct ChatsTab: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 12)
|
.padding(.horizontal, 12)
|
||||||
.padding(.vertical, 10)
|
.padding(.vertical, 6)
|
||||||
|
.frame(minHeight: 36)
|
||||||
.background(
|
.background(
|
||||||
RoundedRectangle(cornerRadius: 12, style: .continuous)
|
RoundedRectangle(cornerRadius: 12, style: .continuous)
|
||||||
.fill(Color(UIColor.secondarySystemBackground))
|
.fill(Color(UIColor.secondarySystemBackground))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user