<!--
{
  "availability" : [
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ParavirtualizedGraphics",
  "identifier" : "/documentation/ParavirtualizedGraphics/PGDevice/newDisplay(with:port:serialNum:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Paravirtualized Graphics"
    ],
    "preciseIdentifier" : "c:objc(pl)PGDevice(im)newDisplayWithDescriptor:port:serialNum:"
  },
  "title" : "newDisplay(with:port:serialNum:)"
}
-->

# newDisplay(with:port:serialNum:)

Create a display from the specified descriptor and uniquifying parameters.

```
func newDisplay(with descriptor: PGDisplayDescriptor, port: Int, serialNum: UInt32) -> (any PGDisplay)?
```

## Parameters

`descriptor`

The description of the new display.

`port`

The port number on the accelerator for the device to use for the new display. Specify a unique port number for each display.

`serialNum`

A number that uniquely identifies the display. Ensure that the display persists across multiple launches so that the guest compositor can maintain a consistent display layout.

## Return Value

A new display object, or `nil` if an error occurred.

## Discussion

---

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)