---
title: automaticallyAdjustsZRange
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scncamera/automaticallyadjustszrange
---

# automaticallyAdjustsZRange

A Boolean value that determines whether the camera automatically adjusts its zNear and zFar depth limits.

## Declaration

```swift
var automaticallyAdjustsZRange: Bool { get set }
```

## Discussion

Discussion The default value of this property is false, specifying that the camera’s zNear and zFar properties control its depth limits. If you change this property’s value to true, SceneKit automatically adjusts the depth limits at render time to fit the bounding box of the scene. Changing the values of the zNear and zFar properties automatically resets this property’s value to false.

## See Also

### Adjusting Camera Perspective

- [zNear](scenekit/scncamera/znear.md)
- [zFar](scenekit/scncamera/zfar.md)
