init
TypeScriptstatic init(action?: (() => void)): Promise<ShortcutsLink>Swift declaration@MainActor @preconcurrency init(action: @escaping () -> Void = {})Creates a link that launches Shortcuts and then executes the specified closure.
struct · iOS 16.0+ · SDK 27.1
@MainActor @preconcurrency struct ShortcutsLinkA button that brings users to the current app's App Shortcuts page in the Shortcuts app. You can create a button by calling the initializer with an additional closure, which gets called whenever the button is tapped before opening the Shortcuts app. ShortcutsLink(action: handleTap) .shortcutsLinkStyle(.dark)
static init(action?: (() => void)): Promise<ShortcutsLink>Swift declaration@MainActor @preconcurrency init(action: @escaping () -> Void = {})Creates a link that launches Shortcuts and then executes the specified closure.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
ShortcutsLink.body
This protocol needs associated types that cannot yet cross the bridge.