---
title: role
framework: groupactivities
role: symbol
role_heading: Instance Property
path: groupactivities/spatialtemplateseatelement/role
---

# role

An optional role you associate with this element.

## Declaration

```swift
let role: (any SpatialTemplateRole)?
```

## Discussion

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.

## See Also

### Getting the element details

- [position](groupactivities/spatialtemplateseatelement/position.md)
- [direction](groupactivities/spatialtemplateseatelement/direction.md)
