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

# autoResizeDrawable

A Boolean value that controls whether to resize the drawable as the view changes size.

## Declaration

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

## Discussion

Discussion If the value is true, the view automatically resizes its underlying color, depth, stencil, and multisample textures when the view is resized. If the value is false, you must explicitly set drawableSize to change the size of these objects. The default value is true.

## See Also

### Configuring the Color Render Target

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