Documentation

This commit is contained in:
Gwendal Roué committed 2021-11-07 13:25:50 +01:00
1 parent b44a9eb470
commit 7ed103d5e4
6 files changed
+6 -2

No files matched your search

@@ -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: "")
@@ -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
@@ -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
@@ -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: "")
@@ -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
@@ -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