---
title: defaultDepthLimit
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nswindow/defaultdepthlimit
---

# defaultDepthLimit

Returns the default depth limit for instances of NSWindow.

## Declaration

```swift
class var defaultDepthLimit: NSWindow.Depth { get }
```

## Return Value

Return Value The default depth limit for instances of NSWindow, determined by the depth of the deepest screen level available to the window server.

## Discussion

Discussion The value returned can be examined with the Application Kit functions isPlanar, colorSpaceName, bitsPerSample, and bitsPerPixel.

## See Also

### Related Documentation

- [canStoreColor()](appkit/nswindow/canstorecolor().md)

### Accessing Window Information

- [depthLimit](appkit/nswindow/depthlimit.md)
- [hasDynamicDepthLimit](appkit/nswindow/hasdynamicdepthlimit.md)
- [windowNumber](appkit/nswindow/windownumber.md)
- [windowNumbers(options:)](appkit/nswindow/windownumbers(options:).md)
- [deviceDescription](appkit/nswindow/devicedescription.md)
- [NSDeviceDescriptionKey](appkit/nsdevicedescriptionkey.md)
- [canBecomeVisibleWithoutLogin](appkit/nswindow/canbecomevisiblewithoutlogin.md)
- [sharingType](appkit/nswindow/sharingtype-swift.property.md)
- [backingType](appkit/nswindow/backingtype.md)
- [displayLink(target:selector:)](appkit/nswindow/displaylink(target:selector:).md)
