<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNCamera/fieldOfView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNCamera(py)fieldOfView"
  },
  "title" : "fieldOfView"
}
-->

# fieldOfView

The vertical or horizontal viewing angle of the camera.

```
var fieldOfView: CGFloat { get set }
```

## Discussion

The [`projectionDirection`](/documentation/SceneKit/SCNCamera/projectionDirection) property determines whether this [`fieldOfView`](/documentation/SceneKit/SCNCamera/fieldOfView) property measures the camera’s vertical or horizontal viewing angle, and SceneKit automatically calculates the viewing angle in the other direction to match the aspect ratio of the view displaying the scene. For example, a [`fieldOfView`](/documentation/SceneKit/SCNCamera/fieldOfView) of `60` and the default [`SCNCameraProjectionDirection.vertical`](/documentation/SceneKit/SCNCameraProjectionDirection/vertical) projection, presented fullscreen on a 16:9 display in portrait orientation, results in a vertical viewing angle of 60° and a horizontal viewing angle of 33.75°.

You can choose to specify viewing angle either directly, using this [`fieldOfView`](/documentation/SceneKit/SCNCamera/fieldOfView) property, or in terms that model a physical camera, using the [`sensorHeight`](/documentation/SceneKit/SCNCamera/sensorHeight) and [`focalLength`](/documentation/SceneKit/SCNCamera/focalLength) properties. Setting the [`fieldOfView`](/documentation/SceneKit/SCNCamera/fieldOfView) property causes SceneKit to automatically recalculate the [`focalLength`](/documentation/SceneKit/SCNCamera/focalLength) value, and setting the [`sensorHeight`](/documentation/SceneKit/SCNCamera/sensorHeight) or [`focalLength`](/documentation/SceneKit/SCNCamera/focalLength) property recalculates [`fieldOfView`](/documentation/SceneKit/SCNCamera/fieldOfView).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)