Query documentation

This commit is contained in:
Gwendal Roué committed 2021-11-25 10:16:38 +01:00
1 parent 10e784bee3
commit 01ba7de2f9
2 files changed
+7 -1

No files matched your search

+4
View File
@@ -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!
+3 -1
View File
@@ -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