<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SpatialTemplatePreference/contentExtent(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Group Activities",
      "GroupActivities"
    ],
    "preciseIdentifier" : "s:15GroupActivities25SpatialTemplatePreferenceV13contentExtentyAC14CoreFoundation7CGFloatVF"
  },
  "title" : "contentExtent(_:)"
}
-->

# contentExtent(_:)

Sets the distance between the app’s content and any participants.

```
func contentExtent(_ contentExtent: CGFloat) -> SpatialTemplatePreference
```

## Discussion

Use this modifier to set the distance between your app’s content
and the participants in a shared context. You might use this modifier
if the intrinsic size of your content doesn’t represent an
optimal viewing distance. Specify the new size in points.

If you don’t apply this modifier, the system uses the intrinsic size
of the scene’s content to determine the viewing distance for participants.

---

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)