init(intent:)
Creates a shortcut with the specified intent.
Declaration
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.
Discussion
Returns nil for invalid intents.