<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/GroupActivityMetadata/sceneAssociationBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A16ActivityMetadataV24sceneAssociationBehaviorAA05ScenefG0Vvp"
  },
  "title" : "sceneAssociationBehavior"
}
-->

# sceneAssociationBehavior

Criteria the system uses to direct an activity to a specific scene
of your app.

```
var sceneAssociationBehavior: SceneAssociationBehavior
```

## Discussion

An app with multiple <doc://com.apple.documentation/documentation/SwiftUI/Scene>
types typically uses each scene for a different purpose. For example,
you might use one scene type for your app’s documents, and a different
scene type for tool palettes, information windows, and other content.
When a group activity starts, the system uses the information in this
property to deliver the activity to the appropriate scene. On some
platforms, the system also adds a custom indicator to the scene to
let people know that SharePlay is active.

Assign a value to this property to specify the scene-selection behavior
for your app. If you don’t specify a value for this property, the
system adopts the [`default`](/documentation/GroupActivities/SceneAssociationBehavior/default) scene association behavior.

---

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)