Contents

ShortcutsLink

A button that brings users to the current app’s App Shortcuts page in the Shortcuts app.

Declaration

@MainActor @preconcurrency struct ShortcutsLink

Overview

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)

Topics

Initializers

See Also

Buttons