Reply to How to remove SwiftUI TextField focus border? 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) UI Frameworks SwiftUI Aug ’23