---
title: "reconfigure(sizeInPixels:)"
framework: virtualization
role: symbol
role_heading: Instance Method
path: "virtualization/vzgraphicsdisplay/reconfigure(sizeinpixels:)"
---

# reconfigure(sizeInPixels:)

Resize this display with the new dimensions you provide.

## Declaration

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

## Parameters

- `sizeInPixels`: The new display width and height in pixels.

## Discussion

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 protocol.

## See Also

### Changing the display configuration

- [reconfigure(configuration:)](virtualization/vzgraphicsdisplay/reconfigure(configuration:).md)
