There was an error while loading. Please reload this page.
1 parent bc962c3 commit 9aa5336Copy full SHA for 9aa5336
QBChat-MVVM/QBChat-MVVM/View/ChatList/ChatListView.swift
@@ -26,8 +26,10 @@ struct ChatListView: View {
26
var body: some View {
27
NavigationView {
28
List(viewModel.chats) { viewModel in
29
- NavigationLink(destination: ChatDetailView().environmentObject(viewModel)) {
30
- ChatCell(chat: viewModel.state.chat)
+ NavigationLink(destination: ChatDetailView()
+ .environmentObject(viewModel)
31
+ .environmentObject(KeyboardObserver.shared)) {
32
+ ChatCell(chat: viewModel.state.chat)
33
}
34
35
.navigationBarTitle("Chats")
0 commit comments