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

# drawableSize

The size, in pixels, of textures for rendering layer content.

## Declaration

```swift
var drawableSize: CGSize { get set }
```

## Discussion

Discussion By default, a layer creates textures sized to match its content—that is, this property’s value is the layer’s bounds size multiplied by its contentsScale factor.

## See Also

### Configuring the Layer’s Drawable Objects

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