The width of the distance range at which objects appear in sharp focus. Animatable.
- iOS 8.0–11.0Deprecated
- macOS 10.9–10.13Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–11.0Deprecated
- watchOS 3.0–4.0Deprecated
focal property specifies how far away from the camera an object needs to be to appear in sharp focus. Focal size specifies how wide an area around that distance also appears in sharp focus. The default focus size is
0, specifying that the transition from sharp to blurred begins for objects immediately nearer to or farther from the camera than the focal distance. When focal size is nonzero, it specifies the distance between the nearest an object can be to the camera and remain in sharp focus to the farthest an object can be from the camera and remain in sharp focus.
You can animate changes to this property’s value. See Animating SceneKit Content.