<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/MTKView/autoResizeDrawable",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MTKView(py)autoResizeDrawable"
  },
  "title" : "autoResizeDrawable"
}
-->

# autoResizeDrawable

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

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

## Discussion

If the value is <doc://com.apple.documentation/documentation/Swift/true>, the view automatically resizes its underlying color, depth, stencil, and multisample textures when the view is resized. If the value is <doc://com.apple.documentation/documentation/Swift/false>, you must explicitly set [`drawableSize`](/documentation/MetalKit/MTKView/drawableSize) to change the size of these objects.

The default value is <doc://com.apple.documentation/documentation/Swift/true>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)