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