<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INShortcutReference/init(intent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INShortcut(im)initWithIntent:"
  },
  "title" : "init(intent:)"
}
-->

# init(intent:)

Creates a shortcut with the specified intent.

```
init?(intent: INIntent)
```

## Parameters

`intent`

The intent to perform when invoking the shortcut. The intent must have a title and be a valid shortcut type.

## Return Value

A new shortcut object if the specified intent is valid; otherwise, returns `nil`.

## Discussion

---

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)