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

# depth

The current bit depth and colorspace information of the screen.

```
var depth: NSWindow.Depth { get }
```

## Discussion

This value cannot be used directly. You must pass it 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 information.

---

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)