Hello,
Any guidance as to how to make a default button on macOS?
struct ContentView: View {
var body: some View {
HStack() {
Button(action: {print("OK")}) {
Text("OK")
}
Button(action: {print("Cancel")}) {
Text("Cancel")
}
}.padding()
}
}
If I want the OK button to be the default and given the appropriate border?
Thanks!