---
title: nsImage
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/imagerenderer/nsimage
---

# nsImage

The current contents of the view, rasterized as an AppKit image.

## Declaration

```swift
@MainActor final var nsImage: NSImage? { get }
```

## Discussion

Discussion The renderer notifies its objectWillChange publisher when the contents of the image may have changed.

## See Also

### Rendering images

- [render(rasterizationScale:renderer:)](swiftui/imagerenderer/render(rasterizationscale:renderer:).md)
- [cgImage](swiftui/imagerenderer/cgimage.md)
- [uiImage](swiftui/imagerenderer/uiimage.md)
