---
title: "init(image:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsimageview/init(image:)"
---

# init(image:)

Creates a non-editable image view containing the provided image. The image is scaled proportionally down to fit the view, and is centered within the view.

## Declaration

```swift
convenience init(image: NSImage)
```

## Parameters

- `image`: The image to display within the view.

## Return Value

Return Value An initialized image view.
