From 01ba7de2f91f3276cb8e8dff6264c7eb68ae6320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 25 Nov 2021 10:16:38 +0100 Subject: [PATCH] Query documentation --- Documentation/DemoApps/Query/README.md | 4 ++++ Documentation/DemoApps/README.md | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/DemoApps/Query/README.md b/Documentation/DemoApps/Query/README.md index d8a7a33dd..aff2a59f5 100644 --- a/Documentation/DemoApps/Query/README.md +++ b/Documentation/DemoApps/Query/README.md @@ -166,6 +166,10 @@ struct PlayerList: View { } ``` +## Demo applications + +See the [demo applications] for various examples of apps that use `@Query`. + --- 🙌 `@Query` was vastly inspired from [Core Data and SwiftUI](https://davedelong.com/blog/2021/04/03/core-data-and-swiftui/) by [@davedelong](https://github.com/davedelong), with critical improvements contributed by [@steipete](https://github.com/steipete). Many thanks to both of you! diff --git a/Documentation/DemoApps/README.md b/Documentation/DemoApps/README.md index 46afbb32f..7be853d46 100644 --- a/Documentation/DemoApps/README.md +++ b/Documentation/DemoApps/README.md @@ -4,10 +4,12 @@ Demo Applications - [GRDBDemoiOS]: a storyboard-based UIKit application. - [GRDBCombineDemo]: a Combine + SwiftUI application. - [GRDBAsyncDemo]: a Async/Await + SwiftUI application. +- [QueryDemo]: a SwiftUI application that explores the `@Query` property wrapper. -Both [GRDBCombineDemo] and [GRDBAsyncDemo] use the same `@Query` property wrapper, that lets SwiftUI views automatically update their content when the database changes. It is defined in the shared [Query] package. You can copy and embed this package into your application, or just the `Query.swift` file. +[GRDBCombineDemo], [GRDBAsyncDemo] and [QueryDemo] use the same `@Query` property wrapper, that lets SwiftUI views automatically update their content when the database changes. It is defined in the shared [Query] package. [GRDBDemoiOS]: GRDBDemoiOS [GRDBCombineDemo]: GRDBCombineDemo [GRDBAsyncDemo]: GRDBAsyncDemo +[QueryDemo]: QueryDemo [Query]: Query