From dec515aceb9ac39b4320bd7f8864613e6fc0a7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 25 Nov 2021 09:42:21 +0100 Subject: [PATCH] Query documentation --- Documentation/DemoApps/Query/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/DemoApps/Query/README.md b/Documentation/DemoApps/Query/README.md index 57e43522c..2f0584a7a 100644 --- a/Documentation/DemoApps/Query/README.md +++ b/Documentation/DemoApps/Query/README.md @@ -73,10 +73,13 @@ struct MyApp: App { You will feed SwiftUI previews with databases that you want to preview: ```swift -struct MyView_Previews: PreviewProvider { +struct PlayerList_Previews: PreviewProvider { static var previews: some View { - MyView().environment(\.dbQueue, /* empty table of players */) - MyView().environment(\.dbQueue, /* non-empty table of players */) + // Empty list + PlayerList().environment(\.dbQueue, /* empty table of players */) + + // Non-empty list + PlayerList().environment(\.dbQueue, /* non-empty table of players */) } } ```