<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/SpatialAudioExperiences/AnchoringStrategy/scene(identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "s:12AudioToolbox07SpatialA11ExperiencesO17AnchoringStrategyO5sceneyAESS_tcAEmF"
  },
  "title" : "SpatialAudioExperiences.AnchoringStrategy.scene(identifier:)"
}
-->

# SpatialAudioExperiences.AnchoringStrategy.scene(identifier:)

Anchor to the visual center of a particular UIScene.

```
case scene(identifier: String)
```

## Discussion

The sound tracks the center of the UIScene’s volume or window even
as the user moves it around their space.

Use the <doc://com.apple.documentation/documentation/UIKit/UISceneSession/persistentIdentifier> for a
<doc://com.apple.documentation/documentation/UIKit/UIScene> as the identifier.

Configuring your sound with an unknown scene identifier causes the sound
to receive a front anchoring strategy.

If a sound starts with a known scene identifer but the scene becomes
unknown later on, the sound remains aligned with the scene’s last-known
location until the user executes a recenter gesture at which point it
reverts to a front anchoring strategy.

Using the UIScene identifier from an <doc://com.apple.documentation/documentation/SwiftUI/ImmersiveSpace> results
in the same behavior as a front anchoring strategy.

---

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)