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

# contentsRect

A rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable.

## Declaration

```swift
var contentsRect: CGRect { get set }
```

## Discussion

Discussion By default, this property is set to the unit rectangle (0.0,0.0,1.0,1.0), which results in all of the layer’s contents being drawn. If pixels outside the unit rectangle are requested, the edge pixels of the contents image are extended outwards. If you assign an empty rectangle to this property, the results are undefined.

## See Also

### Providing Emitter Cell Content

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