<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/HelpLink/init(action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI8HelpLinkV6actionACyyc_tcfc"
  },
  "title" : "init(action:)"
}
-->

# init(action:)

Constructs a new help link with the specified action.

```
@MainActor @preconcurrency init(action: @escaping () -> Void)
```

## Parameters

`action`

the action to perform when the user clicks the button.

## Discussion

Use this initializer when you want the standard help button appearance
with a custom button action that does not open an article in an Apple
Help book.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)