<!--
{
  "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/SceneAssociationBehavior/content(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Group Activities",
      "GroupActivities"
    ],
    "preciseIdentifier" : "s:15GroupActivities24SceneAssociationBehaviorV7contentyACSSFZ"
  },
  "title" : "content(_:)"
}
-->

# content(_:)

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

```
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.

## Return Value

A [`SceneAssociationBehavior`](/documentation/GroupActivities/SceneAssociationBehavior) type with the specified identifier.

## Discussion

Use this option when you want more control over the scene-selection
process for your [`GroupActivity`](/documentation/GroupActivities/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.

---

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)