<!--
{
  "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/drawableSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MTKView(py)drawableSize"
  },
  "title" : "drawableSize"
}
-->

# drawableSize

The current size of drawable textures.

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

## Discussion

Changing this value adjusts the size of any color, depth, stencil, and multisampling textures created by the view. If [`autoResizeDrawable`](/documentation/MetalKit/MTKView/autoResizeDrawable) is <doc://com.apple.documentation/documentation/Swift/true>, this property is updated automatically whenever the view’s size changes. If [`autoResizeDrawable`](/documentation/MetalKit/MTKView/autoResizeDrawable) is <doc://com.apple.documentation/documentation/Swift/false>, set this value to change the size of the texture objects.

The default value is derived from the current view’s size, in native pixels.

---

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)