79127022

Date: 2024-10-25 19:06:24
Score: 1
Natty:
Report link

I have to use for: instead of isPresented. That was the issue.

Here are my solution.

Button(action: {
    navPath.append(1)
}) {
    Text("Alle Spieler anzeigen")
     Image(systemName: "person.3.fill")
}

2 NavigationDestination

.navigationDestination(for: TeamData.self) { team in
    PlayerViewiPad(team: team)
}
.navigationDestination(for: Int.self) { noTeam in
    PlayerViewiPad(team: TeamEmptyData)
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: piro299