<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/SpatialTemplateElement/role",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities22SpatialTemplateElementP4roleAA0cD4Role_pSgvp"
  },
  "title" : "role"
}
-->

# role

An optional role you associate with this element.

```
var role: (any SpatialTemplateRole)? { get }
```

## Discussion

If you associate a role to a seat, a participant must request
that role to sit in the seat. If your template contains seats
with roles, include some seats without roles to handle people
who are unable to acquire a seat with a role. For
example, you might include seats for spectators as well as players
of a game.

---

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)