<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SpatialTemplateSeatElement/init(position:direction:role:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities26SpatialTemplateSeatElementV8position9direction4roleAcA0cdF8PositionV_AA0cdF9DirectionVAA0cD4Role_pSgtcfc"
  },
  "title" : "init(position:direction:role:)"
}
-->

# init(position:direction:role:)

Creates a seat element with the specified position, direction,
and role information.

```
init(position: SpatialTemplateElementPosition, direction: SpatialTemplateElementDirection = .lookingAt(.app), role: (any SpatialTemplateRole)? = nil)
```

## Parameters

`position`

The position of this seat in the shared coordinate
space. Place seats relative to your app’s content, which is at
the origin of the coordinate space.

`direction`

The initial direction for the participant to face.
Specify a value to point the person in the direction of another
participant or a specific location in the coordinate space. If you
don’t specify this parameter, the participant faces the app’s content.

`role`

The custom role you assign to the seat. Roles are an optional
way to place spatial Personas in an immersive space. For example,
you might define roles for two opposing teams in a game and use
those roles to place the participants relative to
the game content.

## Return Value

An initialized seat element for you to add to a custom
spatial template.

---

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)