---
title: image
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbaritem/image
---

# image

The image to display for the toolbar item.

## Declaration

```swift
var image: UIImage? { get set }
```

```swift
var image: NSImage? { get set }
```

## Discussion

Discussion If you assign a custom view to the toolbar item, modifying this property updates the image property of the view, if one exists. If the item doesn’t contain a custom view, the toolbar item manages the image content directly.

## See Also

### Getting the item’s visual appearance

- [backgroundTintColor](appkit/nstoolbaritem/backgroundtintcolor.md)
- [view](appkit/nstoolbaritem/view.md)
