Creates a Home screen quick action icon based on an image in your app’s bundle, preferably in an asset catalog.
- iOS 9.0+
- Mac Catalyst 13.0+
The name of a custom image in the app’s asset catalog. If the image is not in your app’s asset catalog, this method searches the app bundle for the image.
You do not need to specify the filename extension or the
@3xmodifiers for this name. This method retrieves the appropriate image based on the system and the available image resources.
A Home screen quick action icon initialized with the specified template image provided by your app.
Use this method to create icons based on custom artwork that you provide. If the image name you specify does not correspond to a valid image resource in your app bundle, no icon is displayed for the quick action that you associate the icon with.