If you are developing for macOS and don't want a button to show a square focus on it you can use the focusable modifier.
Button("a button") {
// the action the button will do
}
.focusable(false)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: