diff --git a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/SceneDelegate.swift b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/SceneDelegate.swift index 5b7a7b693..5c5a8ae96 100644 --- a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/SceneDelegate.swift +++ b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/SceneDelegate.swift @@ -10,7 +10,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). // Create the SwiftUI view that provides the window contents. - let viewModel = PlayerListViewModel(database: Current.database()) + let viewModel = PlayerListViewModel(database: AppDatabase.shared) let rootView = PlayerList(viewModel: viewModel) // Use a UIHostingController as window root view controller.