---
title: colorspace
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cametallayer/colorspace
---

# colorspace

The color space of the rendered content.

## Declaration

```swift
var colorspace: CGColorSpace? { get set }
```

## Discussion

Discussion Set this value to specify a color space for the contents of the layer. When a color space is present, Core Animation performs any necessary color space transformations when compositing this content. The default value is nil, indicating that the rendered content isn’t color-matched.

## See Also

### Configuring the Layer’s Drawable Objects

- [pixelFormat](quartzcore/cametallayer/pixelformat.md)
- [framebufferOnly](quartzcore/cametallayer/framebufferonly.md)
- [drawableSize](quartzcore/cametallayer/drawablesize.md)
