Skip to content

Make toSwiftUI public - #230

Closed
gpoitch wants to merge 1 commit into
sindresorhus:mainfrom
gpoitch:patch-1
Closed

gpoitch wants to merge 1 commit into
sindresorhus:mainfrom
gpoitch:patch-1

Conversation

@gpoitch

@gpoitch gpoitch commented Nov 10, 2025

Copy link
Copy Markdown
Contributor

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