Initializer

init(type:)

Creates a Home screen quick action icon using a system-defined image.

Declaration

convenience init(type: UIApplicationShortcutIcon.IconType)

Parameters

type

The system-defined image to use for the icon. For a list of possible images, see the UIApplicationShortcutIcon.IconType enumeration.

Return Value

A Home screen quick action icon initialized with the specified system image.

Discussion

Use this method to create icons for actions supported by the system. Users expect system-defined action images to be used only for the intended action.

See Also

Creating a Quick Action Icon

init(templateImageName: String)

Creates a Home screen quick action icon based on an image in your app’s bundle, preferably in an asset catalog.

init(contact: CNContact)

Creates a Home screen quick action icon from the picture for a contact if available, or else creates a monogram from the contact name.