<!--
{
  "documentType" : "article",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/display-id-defaults",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Display ID Defaults"
}
-->

# Display ID Defaults

Default values for a display ID.

## Topics

### Constants

[`#define kCGDirectMainDisplay`](/documentation/CoreGraphics/kCGDirectMainDisplay)

The current main display ID.

[`var kCGNullDirectDisplay: CGDirectDisplayID`](/documentation/CoreGraphics/kCGNullDirectDisplay)

A value that will never correspond to actual hardware.



---

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)