<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INImage/init(named:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INImage(cm)imageNamed:"
  },
  "title" : "init(named:)"
}
-->

# init(named:)

Creates an image object from an image file in the extension’s bundle.

```
convenience init(named name: String)
```

## Parameters

`name`

The filename of the image that the system loads from the extension’s bundle. You can omit the file’s extension for PNG images. For all other image file formats, you must include the extension.

## Return Value

An image object that contains the bundled image file, or `nil` if the system can’t find an image with the specified filename.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)