<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/SpatialTrackingSession/Configuration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22SpatialTrackingSessionC13ConfigurationV"
  },
  "title" : "SpatialTrackingSession.Configuration"
}
-->

# SpatialTrackingSession.Configuration

A type for configuring the spatial tracking session.

```
struct Configuration
```

## Topics

### Structures

[`struct AnchorCapability`](/documentation/RealityKit/SpatialTrackingSession/Configuration/AnchorCapability)

A type that defines various anchor tracking capabilities.

[`struct SceneUnderstandingCapability`](/documentation/RealityKit/SpatialTrackingSession/Configuration/SceneUnderstandingCapability)

Defines how system behaviors use scene understanding.

### Initializers

[`init(tracking: Set<SpatialTrackingSession.Configuration.AnchorCapability>)`](/documentation/RealityKit/SpatialTrackingSession/Configuration/init(tracking:))

Creates a configuration with a set of anchor capabilities.

[`init(tracking: Set<SpatialTrackingSession.Configuration.AnchorCapability>, sceneUnderstanding: Set<SpatialTrackingSession.Configuration.SceneUnderstandingCapability>)`](/documentation/RealityKit/SpatialTrackingSession/Configuration/init(tracking:sceneUnderstanding:))

Creates a configuration with a set of anchor capabilities and scene understanding capabilities.

[`init(tracking: Set<SpatialTrackingSession.Configuration.AnchorCapability>, sceneUnderstanding: Set<SpatialTrackingSession.Configuration.SceneUnderstandingCapability>, camera: SpatialTrackingSession.Configuration.Camera)`](/documentation/RealityKit/SpatialTrackingSession/Configuration/init(tracking:sceneUnderstanding:camera:))

Creates a configuration with anchor capabilities, scene-understanding
capabilities, and camera feeds.

### Instance Properties

[`var debugDescription: String`](/documentation/RealityKit/SpatialTrackingSession/Configuration/debugDescription)

A human-readable description of the configuration.

### Instance Methods

[`func arConfiguration() -> ARConfiguration?`](/documentation/RealityKit/SpatialTrackingSession/Configuration/arConfiguration())

[`func supportedConfiguration() -> SpatialTrackingSession.Configuration`](/documentation/RealityKit/SpatialTrackingSession/Configuration/supportedConfiguration())

### Enumerations

[`enum Camera`](/documentation/RealityKit/SpatialTrackingSession/Configuration/Camera)

Defines the camera feed the RealityView renders.

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

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)