The problem is that the button is dead it is not accepting the tap.
I put in debug break in isSelected = true statement. When I tap the button it never hits the breakpoint, it is as if the navigationlink button is inactive. How to make it active.
NavigationLink(destination: DetailsView(), label: {
Button(action: {
isSelected = true
}){
Image(systemName: "play.circle")
}
.scaledToFit()
.frame(width: 50, height: 50)
.background(Color.blue)
.foregroundColor(.white)
.clipShape(Circle())
})
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: