<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGDisplayCopyDisplayMode(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGDisplayCopyDisplayMode"
  },
  "title" : "CGDisplayCopyDisplayMode(_:)"
}
-->

# CGDisplayCopyDisplayMode(_:)

Returns information about a display’s current configuration.

```
func CGDisplayCopyDisplayMode(_ display: CGDirectDisplayID) -> CGDisplayMode?
```

## Parameters

`display`

The identifier of the display to be accessed.

## Return Value

A display-mode opaque-type reference, or `NULL` if the display is invalid. In Objective-C, you’re responsible for releasing the display mode using [`CGDisplayModeRelease`](/documentation/CoreGraphics/CGDisplayModeRelease).

## 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)