An image you can optionally associate with a Home screen quick action to improve its appearance and usability.


class UIApplicationShortcutIcon : NSObject


To associate an icon with a quick action, pass it to the quick action item’s initialization method, as described in UIApplicationShortcutItem.

There are three types of quick action icon:


Creating a Quick Action Icon

init(type: UIApplicationShortcutIcon.IconType)

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

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(systemImageName: String)

Creates a Home screen quick action icon using a system symbol image.

init(contact: CNContact)

Creates a Home screen quick action icon from the picture for a contact or a monogram of the contact name if the picture unavailable.


enum UIApplicationShortcutIcon.IconType

Constants for system-provided icons.


Inherits From

See Also

Home Screen Quick Actions

Add Home Screen Quick Actions

Expose commonly used functionality with static or dynamic 3D Touch Home screen quick actions.

class UIApplicationShortcutItem

An application shortcut item, also called a Home screen dynamic quick action, that specifies a user-initiated action for your app.

class UIMutableApplicationShortcutItem

An item that specifies a configurable user-initiated action for your app (the item is also called a mutable Home screen dynamic quick action).