---
title: "init(named:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inimage/init(named:)"
---

# init(named:)

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

## Declaration

```swift
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

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.

## See Also

### Creating an Image Object

- [init(UIImage:)](intents/inimage/init(uiimage:).md)
- [init(CGImage:)](intents/inimage/init(cgimage:).md)
- [init(imageData:)](intents/inimage/init(imagedata:).md)
- [init(url:)](intents/inimage/init(url:)-8eo3q.md)
- [init(url:width:height:)](intents/inimage/init(url:width:height:)-41ikr.md)
