We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isPressed
KeyboardShortcutsExample
1 parent c3c361f commit db50681Copy full SHA for db50681
Example/KeyboardShortcutsExample/MainScreen.swift
@@ -66,7 +66,7 @@ private struct DynamicShortcut: View {
66
.frame(maxWidth: 300)
67
.padding()
68
.padding(.bottom, 20)
69
- .onChange(of: shortcut) { oldValue, newValue in
+ .onChange(of: shortcut, initial: true) { oldValue, newValue in
70
onShortcutChange(oldValue: oldValue, newValue: newValue)
71
}
72
0 commit comments