mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Query documentation
This commit is contained in:
1 parent
10e784bee3
commit
01ba7de2f9
2 files changed
+7
-1
No files matched your search
@@ -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!
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user