I have a button and label for this simple app. When I tap the button, it highlights my button (you can see in the attached image), so how can I disable that? What am I missing?
Code:
struct ContentView: View {
@State private var displayLabel = 0
var body: some View {
GeometryReader{ geo in
ZStack{
Button(action: {
displayLabel += 1
}, label: {
Rectangle()
.foregroundColor(.blue)
.frame(width: geo.size.width, height: geo.size.height)
}).buttonStyle(PlainButtonStyle())
Text("\(displayLabel)")
.font(Font.system(size:75, design: .rounded))
}
}
}
}


