---
title: contentsFormat
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/calayer/contentsformat
---

# contentsFormat

A hint for the desired storage format of the layer contents.

## Declaration

```swift
var contentsFormat: CALayerContentsFormat { get set }
```

## Discussion

Discussion The default value of this property is RGBA8Uint. UIView and layer-backed NSView objects may change the value to a format appropriate for the current device.

## See Also

### Configuring the layer’s rendering behavior

- [isOpaque](quartzcore/calayer/isopaque.md)
- [edgeAntialiasingMask](quartzcore/calayer/edgeantialiasingmask.md)
- [contentsAreFlipped()](quartzcore/calayer/contentsareflipped().md)
- [isGeometryFlipped](quartzcore/calayer/isgeometryflipped.md)
- [drawsAsynchronously](quartzcore/calayer/drawsasynchronously.md)
- [shouldRasterize](quartzcore/calayer/shouldrasterize.md)
- [rasterizationScale](quartzcore/calayer/rasterizationscale.md)
- [render(in:)](quartzcore/calayer/render(in:).md)
