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.
Return Value
A new shortcut object initialized with the specified user activitiy.