---
title: focusDistance
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scncamera/focusdistance
---

# focusDistance

The distance from the camera at which objects appear in sharp focus. Animatable.

## Declaration

```swift
var focusDistance: CGFloat { get set }
```

## Discussion

Discussion Objects at this distance from the camera appear perfectly focused. Objects nearer to or farther from the camera than this distance appear increasingly blurred, with the behavior of the blur effect depending on the fStop, apertureBladeCount and focalBlurSampleCount properties. The default focus distance is 2.5. You can animate changes to this property’s value. See Animating SceneKit Content.

## See Also

### Adding Depth-of-Field Effects

- [wantsDepthOfField](scenekit/scncamera/wantsdepthoffield.md)
- [fStop](scenekit/scncamera/fstop.md)
- [apertureBladeCount](scenekit/scncamera/aperturebladecount.md)
- [focalBlurSampleCount](scenekit/scncamera/focalblursamplecount.md)
