---
title: "init(for:sizeInPoints:)"
framework: virtualization
role: symbol
role_heading: Initializer
path: "virtualization/vzmacgraphicsdisplayconfiguration/init(for:sizeinpoints:)"
---

# init(for:sizeInPoints:)

Create a display configuration suitable for showing on the specified screen.

## Declaration

```swift
convenience init(for screen: NSScreen, sizeInPoints: NSSize)
```

## Parameters

- `screen`: The screen on which you intend to present the doc://com.apple.virtualization/documentation/Virtualization/VZVirtualMachineView for the display.
- `sizeInPoints`: The intended logical size of the display.

## Discussion

Discussion The framework initializes the pixel dimensions and pixel density based on the specified screen and size. An instance of macOS running in the VM may not necessarily provide a display mode with a backing scale factor matching the specified screen.

## See Also

### Creating the display configuration

- [init(widthInPixels:heightInPixels:pixelsPerInch:)](virtualization/vzmacgraphicsdisplayconfiguration/init(widthinpixels:heightinpixels:pixelsperinch:).md)
