Enabling keyboard shortcuts for buttons with buttonStyle applied in SwiftUI
When you try to create a cool UI with SwiftUI, you will often face a problem. In this article, I’ll show you how to use keyboardShortcut to assign keyboard shortcuts to buttons that have been customized with buttonStyle. Environment mac OSX 11.0 XCode 12.0 Goal in this article Using SwiftUI In a macOS app You can use the Enter key to submit a Button. Button design can be customized with