Contents

init(intent:phrases:shortTitle:systemImageName:)

Initializes an App Shortcut with phrases that run the app intent, a title, and an image.

Declaration

init<Intent>(intent: Intent, phrases: [AppShortcutPhrase<Intent>], shortTitle: LocalizedStringResource? = nil, systemImageName: String? = nil) where Intent : AppIntent

Discussion

Use this initializer to create an App Shortcut for your app intent that people discover in the Shortcuts app and that they can run using the Action button on supported iPhone models.

See Also

Creating an app shortcut