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

# CGDisplayAvailableModes(_:)

Returns information about the currently available display modes.

```
func CGDisplayAvailableModes(_ dsp: CGDirectDisplayID) -> CFArray?
```

## Parameters

`dsp`

The identifier of the display to be accessed.

## Return Value

An array of dictionaries with display mode information, or `NULL` if the display is invalid. The array is owned by the system and you should not release it. Each dictionary in the array contains information about a mode that the display supports. For a list of the properties in a display mode dictionary, see [Display Mode Standard Properties](/documentation/CoreGraphics/display-mode-standard-properties) and [Display Mode Optional Properties](/documentation/CoreGraphics/display-mode-optional-properties). For general information about using dictionaries, see <doc://com.apple.documentation/documentation/CoreFoundation/CFDictionary>.

## Discussion

This deprecated function returns an array of display mode dictionary. Starting in OS X v10.6, display mode dictionaries have been replaced by the `CGDisplayMode` opaque type. Whereas display mode dictionaries returned by `CGDisplayAvailableModes` are owned by the system and are not to be released, display mode opaque type references returned by `CGDisplayCopyAllDisplayModes` are owned by the caller and you must release them.

---

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)