mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Query documentation
This commit is contained in:
1 parent
9be04da707
commit
dec515aceb
1 file changed
+6
-3
@@ -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 */)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user