From 613baf30f90fbc4f84e78b526f368a027c468b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 20 Sep 2020 15:27:10 +0200 Subject: [PATCH] GRDBCombineDemo: fix compiler error --- .../GRDBCombineDemo/GRDBCombineDemo/SceneDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.