Class

UIApplicationShortcutIcon

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

Declaration

class UIApplicationShortcutIcon : NSObject

Overview

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:

Topics

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(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.

Constants

enum UIApplicationShortcutIcon.IconType

Constants for system-provided icons.

Relationships

Inherits From

See Also

Home Screen

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).