0

I want to have a Button inside an alert that lead to another view so I have to use NavigationLink instead. But I can’t set role or foreground color to NavigationLink inside the alert. How to achieve this? I want the NavigationLink color red or like the .destructive role of Button.

.alert(“Proceed to play?”, isPresented: $isPro) {
NavigationLink(“Play”, destination: MyPlay())
}
Steven-Carrot
  • 2,368
  • 2
  • 12
  • 37

0 Answers0