---
title: depth
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsscreen/depth
---

# depth

The current bit depth and colorspace information of the screen.

## Declaration

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

## Discussion

Discussion This value cannot be used directly. You must pass it to a function such as bitsPerPixel or colorSpaceName to obtain a concrete value for the desired information.

## See Also

### Getting Screen Information

- [frame](appkit/nsscreen/frame.md)
- [supportedWindowDepths](appkit/nsscreen/supportedwindowdepths.md)
- [deviceDescription](appkit/nsscreen/devicedescription.md)
- [NSDeviceDescriptionKey](appkit/nsdevicedescriptionkey.md)
- [colorSpace](appkit/nsscreen/colorspace.md)
- [localizedName](appkit/nsscreen/localizedname.md)
- [canRepresent(_:)](appkit/nsscreen/canrepresent(_:).md)
- [NSDisplayGamut](appkit/nsdisplaygamut.md)
- [screensHaveSeparateSpaces](appkit/nsscreen/screenshaveseparatespaces.md)
