---
title: "init(action:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/shortcutslink/init(action:)"
---

# init(action:)

Creates a link that launches Shortcuts and then executes the specified closure.

## Declaration

```swift
@MainActor @preconcurrency init(action: @escaping () -> Void = {})
```
