Post

Replies

Boosts

Views

Activity

Reply to .keyboardShortcut on Button in Swift doesn't properly rerender unless button.label changes
I was running into this and found that setting the localization parameter to something other than ".automatic" fixed it. For example, .keyboardShortcut("r", modifiers: [.command], localization: .withoutMirroring)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23