Initializer

init(userActivity:)

Creates a shortcut with the specified user activity.

Declaration

init(userActivity: NSUserActivity)

Parameters

userActivity

The user activity indicating the action to perform when invoking the shortcut.

See Also

Creating a Shortcut

init?(intent: INIntent)

Creates a shortcut with the specified intent.