<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZGraphicsDisplay/reconfigure(sizeInPixels:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZGraphicsDisplay(im)reconfigureWithSizeInPixels:error:"
  },
  "title" : "reconfigure(sizeInPixels:)"
}
-->

# reconfigure(sizeInPixels:)

Resize this display with the new dimensions you provide.

```
func reconfigure(sizeInPixels: CGSize) throws
```

## Parameters

`sizeInPixels`

The new display width and height in pixels.

## Discussion

If successful, the framework passes the new size to the guest but the guest may or may not respond to the new size. If the guest doesn’t use the new size, the Virtualization framework doesn’t return an error.

Resizing the display triggers a display state change that you can track by adopting the [`VZGraphicsDisplayObserver`](/documentation/Virtualization/VZGraphicsDisplayObserver) protocol.

---

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)