---
title: contents
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/caemittercell/contents
---

# contents

An object that provides the contents of the layer. Animatable.

## Declaration

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

## Discussion

Discussion A layer can set this property to a CGImage to display the image as its contents. The default value of this property is nil.

## See Also

### Providing Emitter Cell Content

- [contentsRect](quartzcore/caemittercell/contentsrect.md)
- [emitterCells](quartzcore/caemittercell/emittercells.md)
