Skip to content

Commit

Permalink
- needs @mainactor for earlier xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
scornflake committed Jul 25, 2024
1 parent bec3d76 commit 25f1619
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/KeyboardShortcuts/SwiftUI+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extension KeyboardShortcuts.Shortcut {
// Holds the state of the shortcut, and changes that state when the shortcut changes
// This causes the related NSMenuItem to also update (yipeee)
@available(macOS 12.3, *)
@MainActor
struct KeyboardShortcutView<Content: View>: View {
@State private var shortcutName: KeyboardShortcuts.Name
@State private var shortcut: KeyboardShortcuts.Shortcut?
Expand Down

0 comments on commit 25f1619

Please sign in to comment.