diff --git a/PadelClub/Views/Match/MatchDetailView.swift b/PadelClub/Views/Match/MatchDetailView.swift index 2c8ee62..36a3755 100644 --- a/PadelClub/Views/Match/MatchDetailView.swift +++ b/PadelClub/Views/Match/MatchDetailView.swift @@ -310,8 +310,10 @@ struct MatchDetailView: View { ToolbarItem(placement: .topBarTrailing) { Menu { - NavigationLink("Partager") { + NavigationLink { ShareModelView(instance: self.match) + } label: { + Label("Partager", systemImage: "square.and.arrow.up") } Toggle(isOn: .init(get: { diff --git a/PadelClub/Views/Tournament/TournamentView.swift b/PadelClub/Views/Tournament/TournamentView.swift index 81a00f9..26f986c 100644 --- a/PadelClub/Views/Tournament/TournamentView.swift +++ b/PadelClub/Views/Tournament/TournamentView.swift @@ -286,9 +286,9 @@ struct TournamentView: View { Label("Imprimer", systemImage: "printer") } -// NavigationLink(value: Screen.share) { -// Label("Partager", systemImage: "square.and.arrow.up") -// } + NavigationLink(value: Screen.share) { + Label("Partager", systemImage: "square.and.arrow.up") + } Divider()