---
title: preservesDepth
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/caemitterlayer/preservesdepth
---

# preservesDepth

Defines whether the layer flattens the particles into its plane.

## Declaration

```swift
var preservesDepth: Bool { get set }
```

## Discussion

Discussion If true, the layer renders its particles as if they directly inhabit the three-dimensional coordinate space of the layer’s superlayer. When enabled, the effect of the layer’s filters, backgroundFilters, and shadow related properties is undefined. Default is false.

## See Also

### Emitter Cell Attribute Multipliers

- [scale](quartzcore/caemitterlayer/scale.md)
- [seed](quartzcore/caemitterlayer/seed.md)
- [spin](quartzcore/caemitterlayer/spin.md)
- [velocity](quartzcore/caemitterlayer/velocity.md)
- [birthRate](quartzcore/caemitterlayer/birthrate.md)
- [emitterMode](quartzcore/caemitterlayer/emittermode.md)
- [lifetime](quartzcore/caemitterlayer/lifetime.md)
