---
title: colorspace
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtkview/colorspace
---

# colorspace

The color space of the rendered content.

## Declaration

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

## Discussion

Discussion The default value is nil, indicating that the rendered content isn’t color-matched. If you set this to a different color space, Core Animation performs any necessary color transformations when compositing the view’s contents.

## See Also

### Configuring the Color Render Target

- [colorPixelFormat](metalkit/mtkview/colorpixelformat.md)
- [framebufferOnly](metalkit/mtkview/framebufferonly.md)
- [drawableSize](metalkit/mtkview/drawablesize.md)
- [preferredDrawableSize](metalkit/mtkview/preferreddrawablesize.md)
- [autoResizeDrawable](metalkit/mtkview/autoresizedrawable.md)
- [clearColor](metalkit/mtkview/clearcolor.md)
