diff --git a/QBChat-MVVM/QBChat-MVVM/Common/SceneDelegate.swift b/QBChat-MVVM/QBChat-MVVM/Common/SceneDelegate.swift index d9d3f62..70a2e68 100644 --- a/QBChat-MVVM/QBChat-MVVM/Common/SceneDelegate.swift +++ b/QBChat-MVVM/QBChat-MVVM/Common/SceneDelegate.swift @@ -24,6 +24,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { let viewModel = AnyViewModel(ChatListViewModel(chatService: chatService)) let contentView = ChatListView() .environmentObject(viewModel) + .environmentObject(KeyboardObserver.shared) // Use a UIHostingController as window root view controller. if let windowScene = scene as? UIWindowScene {