init(for:sizeInPoints:)
Create a display configuration suitable for showing on the specified screen.
Declaration
convenience init(for screen: NSScreen, sizeInPoints: NSSize)Parameters
- screen:
The screen on which you intend to present the Vzvirtualmachineview for the display.
- sizeInPoints:
The intended logical size of the display.
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.