Skip to content

Commit

Permalink
Merge pull request #1 from Devepre/develop
Browse files Browse the repository at this point in the history
Fix for the crash due to missing environment Keyboard Observer object
  • Loading branch information
pauljohanneskraft committed Dec 8, 2019
2 parents bc962c3 + cc22878 commit 74510dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions QBChat-MVVM/QBChat-MVVM/Common/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 74510dd

Please sign in to comment.