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

# SpatialTemplateConfiguration

A type that contains the configuration details for a spatial template.

```
struct SpatialTemplateConfiguration
```

## Overview

Create a [`SpatialTemplateConfiguration`](/documentation/GroupActivities/SpatialTemplateConfiguration) structure and fill it with
the information you want to apply to your custom [`SpatialTemplate`](/documentation/GroupActivities/SpatialTemplate)
type. A configuration structure contains the role to give to the person
who initiates an activity that uses the template. For example, you might
assign a presenter role to a person presenting a slide deck. Spatial
templates use roles to place spatial Personas in the shared coordinate
space.

## Topics

### Operators

[`static func == (SpatialTemplateConfiguration, SpatialTemplateConfiguration) -> Bool`](/documentation/GroupActivities/SpatialTemplateConfiguration/==(_:_:))

Returns a Boolean value that indicates whether two values are equal.

### Initializers

[`init(defaultInitiatorRole: (any SpatialTemplateRole)?)`](/documentation/GroupActivities/SpatialTemplateConfiguration/init(defaultInitiatorRole:))

Creates the configuration structure for a spatial template.

### Instance Properties

[`let defaultInitiatorRole: (any SpatialTemplateRole)?`](/documentation/GroupActivities/SpatialTemplateConfiguration/defaultInitiatorRole)

The default role to assign to the initiator of the group activity.

### Instance Methods

[`func hash(into: inout Hasher)`](/documentation/GroupActivities/SpatialTemplateConfiguration/hash(into:))

Hashes the essential components of this value by feeding them into
the given hasher.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)