---
title: contents
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdraggingimagecomponent/contents
---

# contents

An object providing the image contents of the component.

## Declaration

```swift
var contents: Any? { get set }
```

## Discussion

Discussion Typically you set an NSImage instance or a CGImage as content.

## See Also

### Dragging Image Contents

- [frame](appkit/nsdraggingimagecomponent/frame.md)
