---
title: "init(imageName:)"
framework: watchkit
role: symbol
role_heading: Initializer
path: "watchkit/wkimage/init(imagename:)"
---

# init(imageName:)

Creates an image by loading an image file from the Watch app bundle.

## Declaration

```swift
convenience init(imageName: String)
```

## Parameters

- `imageName`: The name of the image to be loaded from the Watch app’s bundle. Specify the filename of the image and include the filename extension in the name. This parameter must not be nil.

## Return Value

Return Value An initialized WKImage object.

## Discussion

Discussion Use this method to specify an image by name. Only the image name is sent from your WatchKit extension to your Watch app, and the Watch app handles the loading of that image from its own bundle. If it cannot find the specified image, it displays no image.

## See Also

### Creating Image Objects

- [init(image:)](watchkit/wkimage/init(image:).md)
- [init(imageData:)](watchkit/wkimage/init(imagedata:).md)
