From 7ed103d5e4eab6edab1642b3bdca81205d40079f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 7 Nov 2021 13:25:50 +0100 Subject: [PATCH] Documentation --- .../GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerCreationView.swift | 1 + .../GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerEditionView.swift | 1 + .../DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerList.swift | 2 +- .../GRDBCombineDemo/Views/PlayerCreationView.swift | 1 + .../GRDBCombineDemo/Views/PlayerEditionView.swift | 1 + .../GRDBCombineDemo/GRDBCombineDemo/Views/PlayerList.swift | 2 +- 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerCreationView.swift b/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerCreationView.swift index e709c42d6..b71a3c2aa 100644 --- a/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerCreationView.swift +++ b/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerCreationView.swift @@ -2,6 +2,7 @@ import SwiftUI /// The view that creates a new player. struct PlayerCreationView: View { + /// Write access to the database @Environment(\.appDatabase) private var appDatabase @Environment(\.dismiss) private var dismiss @State private var form = PlayerForm(name: "", score: "") diff --git a/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerEditionView.swift b/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerEditionView.swift index 2ec125ef7..79f524506 100644 --- a/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerEditionView.swift +++ b/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerEditionView.swift @@ -2,6 +2,7 @@ import SwiftUI /// The view that edits an existing player. struct PlayerEditionView: View { + /// Write access to the database @Environment(\.appDatabase) private var appDatabase @Environment(\.isPresented) private var isPresented private let player: Player diff --git a/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerList.swift b/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerList.swift index ea959e1b0..b4ec9cee0 100644 --- a/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerList.swift +++ b/Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/Views/PlayerList.swift @@ -1,7 +1,7 @@ import SwiftUI struct PlayerList: View { - /// Database access + /// Write access to the database @Environment(\.appDatabase) private var appDatabase /// The players in the list diff --git a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerCreationView.swift b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerCreationView.swift index bee16f99a..1c78289a9 100644 --- a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerCreationView.swift +++ b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerCreationView.swift @@ -2,6 +2,7 @@ import SwiftUI /// The view that creates a new player. struct PlayerCreationView: View { + /// Write access to the database @Environment(\.appDatabase) private var appDatabase @Environment(\.dismiss) private var dismiss @State private var form = PlayerForm(name: "", score: "") diff --git a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerEditionView.swift b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerEditionView.swift index cc029a7b2..a3bde6aa8 100644 --- a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerEditionView.swift +++ b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerEditionView.swift @@ -2,6 +2,7 @@ import SwiftUI /// The view that edits an existing player. struct PlayerEditionView: View { + /// Write access to the database @Environment(\.appDatabase) private var appDatabase @Environment(\.isPresented) private var isPresented private let player: Player diff --git a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerList.swift b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerList.swift index c6f465c70..1b41a8bc4 100644 --- a/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerList.swift +++ b/Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/Views/PlayerList.swift @@ -1,7 +1,7 @@ import SwiftUI struct PlayerList: View { - /// Database access + /// Write access to the database @Environment(\.appDatabase) private var appDatabase /// The players in the list