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 25f1619 commit 08a68e5
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 @@ -9,6 +9,7 @@ import Carbon
// Provides a SwiftUI like wrapper function, that feels the same as the normal SwiftUI .keyboardShortcut view extension
@available(macOS 12.3, *)
extension View {
@MainActor
public func keyboardShortcut(_ shortcutName: KeyboardShortcuts.Name) -> some View {
KeyboardShortcutView(shortcutName: shortcutName) {
self
Expand Down

0 comments on commit 08a68e5

Please sign in to comment.