One Logo Pool Ball
_AppIntents_SwiftUI · IOS API REFERENCE

ShortcutsLink

struct · iOS 16.0+ · SDK 27.1

@MainActor @preconcurrency struct ShortcutsLink

A 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)

Members (1)

init · iOS 16.0+

init

TypeScript
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.

Skipped declarations

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.

All _AppIntents_SwiftUI types →