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

# supportedWindowDepths

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

## Declaration

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

## Discussion

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 or colorSpaceName to obtain a concrete value for the desired screen.

## See Also

### Getting Screen Information

- [depth](appkit/nsscreen/depth.md)
- [frame](appkit/nsscreen/frame.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)
