---
title: "contentExtent(_:)"
framework: groupactivities
role: symbol
role_heading: Instance Method
path: "groupactivities/spatialtemplatepreference/contentextent(_:)"
---

# contentExtent(_:)

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

## Declaration

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

## Mentioned in

Adding spatial Persona support to an activity

## Discussion

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.
