---
title: hasDynamicDepthLimit
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/hasdynamicdepthlimit
---

# hasDynamicDepthLimit

A Boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on.

## Declaration

```swift
var hasDynamicDepthLimit: Bool { get }
```

## Discussion

Discussion The value of this property is true when the window has a dynamic depth limit; otherwise, false. When the value of hasDynamicDepthLimit is false, the window uses either its preset depth limit or the default depth limit. A different, and non-dynamic, depth limit can be set using the depthLimit property.

## See Also

### Accessing Window Information

- [depthLimit](appkit/nswindow/depthlimit.md)
- [defaultDepthLimit](appkit/nswindow/defaultdepthlimit.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)
