Skip to content

Make toSwiftUI public#230

Closed
gpoitch wants to merge 1 commit intosindresorhus:mainfrom
gpoitch:patch-1
Closed

Make toSwiftUI public#230
gpoitch wants to merge 1 commit intosindresorhus:mainfrom
gpoitch:patch-1

Conversation

@gpoitch
Copy link
Copy Markdown
Contributor

@gpoitch gpoitch commented Nov 10, 2025

Looking to do something like this in a menu where there is an optional preference and falls back to a default.

Button("New Item") {}
    .keyboardShortcut(newItemKeyboardShortcutPref?.toSwiftUI ?? .init("n"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant