|
|
|
|
@ -56,6 +56,18 @@ struct PlanningSettingsView: View { |
|
|
|
|
DatePicker(selection: $tournament.startDate) { |
|
|
|
|
Text(tournament.startDate.formatted(.dateTime.weekday(.wide)).capitalized).lineLimit(1) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
NavigationLink { |
|
|
|
|
TournamentMatchFormatsSettingsView() |
|
|
|
|
.environment(tournament) |
|
|
|
|
} label: { |
|
|
|
|
VStack(alignment: .leading) { |
|
|
|
|
Text(tournament.formatSummary()) |
|
|
|
|
Text("Formats par défaut").foregroundStyle(.secondary).font(.caption) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LabeledContent { |
|
|
|
|
StepperView(count: $tournament.dayDuration, minimum: 1) |
|
|
|
|
} label: { |
|
|
|
|
|