---
title: "init(intent:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inshortcutreference/init(intent:)"
---

# init(intent:)

Creates a shortcut with the specified intent.

## Declaration

```swift
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

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

## See Also

### Creating a Shortcut

- [init(userActivity:)](intents/inshortcutreference/init(useractivity:).md)
