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

# CGCompleteDisplayConfiguration(_:_:)

Completes a set of display configuration changes.

```
func CGCompleteDisplayConfiguration(_ config: CGDisplayConfigRef?, _ option: CGConfigureOption) -> CGError
```

## Parameters

`config`

The display configuration that contains the desired changes. On return, this configuration is no longer valid.

`option`

The scope of the display configuration changes. Pass one of the constants listed in [`CGConfigureOption`](/documentation/CoreGraphics/CGConfigureOption).

## Return Value

A result code. If the request to apply changes is successful, the result is `kCGErrorSuccess`. For other possible values, see [`CGError`](/documentation/CoreGraphics/CGError).

## Discussion

This function applies a set of display configuration changes as a single atomic transaction. The duration or scope of the changes depends on the value of the `option` parameter. For more information about possible scopes, see [`CGConfigureOption`](/documentation/CoreGraphics/CGConfigureOption).

A configuration change can fail if you request an unsupported display mode or if another application is running in full-screen mode.

---

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)