You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.5 KiB
56 lines
1.5 KiB
//
|
|
// TournamentInitView.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 22/03/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct TournamentInitView: View {
|
|
@Environment(Tournament.self) private var tournament: Tournament
|
|
|
|
@ViewBuilder
|
|
var body: some View {
|
|
Section {
|
|
NavigationLink(value: Screen.settings) {
|
|
LabeledContent {
|
|
Text(tournament.settingsDescriptionLocalizedLabel())
|
|
.tint(.master)
|
|
} label: {
|
|
LabelSettings()
|
|
}
|
|
}
|
|
} footer: {
|
|
Text("La date, la catégorie, le niveau, le nombre de terrain, les formats, etc.")
|
|
}
|
|
|
|
Section {
|
|
NavigationLink(value: Screen.broadcast) {
|
|
LabeledContent {
|
|
// Text(tournament.isPrivate ? "privée" : "publique")
|
|
} label: {
|
|
Text("Publication")
|
|
}
|
|
}
|
|
}
|
|
|
|
Section {
|
|
NavigationLink(value: Screen.structure) {
|
|
LabeledContent {
|
|
Text(tournament.structureDescriptionLocalizedLabel())
|
|
.tint(.master)
|
|
} label: {
|
|
LabelStructure()
|
|
}
|
|
}
|
|
} footer: {
|
|
Text("Nombre d'équipes, de poules, de qualifiés sortant, etc.")
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
TournamentInitView()
|
|
.environment(Tournament.mock())
|
|
}
|
|
|