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, systemImageName: String) where Intent : AppIntentMentioned in
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.