<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/SpatialTrackingSession/run(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22SpatialTrackingSessionC3runyAC23UnavailableCapabilitiesVSgAC13ConfigurationVYaF"
  },
  "title" : "run(_:)"
}
-->

# run(_:)

Runs the spatial tracking session with the specified configuration.

```
@discardableResult final func run(_ spatialTrackingConfiguration: SpatialTrackingSession.Configuration) async -> SpatialTrackingSession.UnavailableCapabilities?
```

## Parameters

`spatialTrackingConfiguration`

An object that configures the AR data that RealityKit uses in the spatial tracking session.

## Return Value

The unavailable capabilities based on the hardware and the user authorization.

---

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)