---
title: "content(_:)"
framework: groupactivities
role: symbol
role_heading: Type Method
path: "groupactivities/sceneassociationbehavior/content(_:)"
---

# content(_:)

A behavior that matches the activity to a scene using a custom string that you supply.

## Declaration

```swift
static func content(_ contentIdentifier: String) -> SceneAssociationBehavior
```

## Parameters

- `contentIdentifier`: The string to compare against the scene’s defined activation conditions. This string has a similar purpose to the doc://com.apple.documentation/documentation/Foundation/NSUserActivity/targetContentIdentifier of an doc://com.apple.documentation/documentation/Foundation/NSUserActivity object.

## Mentioned in

Adding spatial Persona support to an activity

## Return Value

Return Value A SceneAssociationBehavior type with the specified identifier.

## Discussion

Discussion Use this option when you want more control over the scene-selection process for your GroupActivity object. You might use it to direct the activity to different scenes, or to direct the activity to a specific instance of a scene. For example, a drawing app might direct the activity to the specific canvas someone wants to share, and not to a new or unrelated canvas that uses the same scene type.

## See Also

### Getting the scene-association options

- [default](groupactivities/sceneassociationbehavior/default.md)
- [none](groupactivities/sceneassociationbehavior/none.md)
