Creates an image object whose contents are taken from the specified name.
- iOS 10.0+
- Mac Catalyst 13.0+
- watchOS 3.2+
The name of an image to load. The system looks for a file with the specified name in the app extension’s bundle. For PNG images, you may omit the filename extension. For all other file formats, always include the filename extension.
A new image object or
nil if the specified image could not be created.
Use this method to load images from the bundle of an Intents extension or Intents UI extension. This method loads the variant of the image that is best suited for display on the screen.