<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScreen/supportedWindowDepths",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScreen(py)supportedWindowDepths"
  },
  "title" : "supportedWindowDepths"
}
-->

# supportedWindowDepths

A zero-terminated array of the window depths supported by the screen.

```
var supportedWindowDepths: UnsafePointer<NSWindow.Depth> { get }
```

## Discussion

This is a C-style array of window depths. The returned values cannot be used directly. You must pass each one to a function such as [`bitsPerPixel`](/documentation/AppKit/NSWindow/Depth/bitsPerPixel) or [`colorSpaceName`](/documentation/AppKit/NSWindow/Depth/colorSpaceName) to obtain a concrete value for the desired screen.

---

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)