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

# init(defaultInitiatorRole:)

Creates the configuration structure for a spatial template.

```
init(defaultInitiatorRole: (any SpatialTemplateRole)? = nil)
```

## Parameters

`defaultInitiatorRole`

The template-specific role to apply to
the person who initiates the activity. The specified role must
be present in the template. Specify `nil` if you don’t want to
assign a specific role to the initiator of the activity.

## Return Value

An initialized configuration object.

---

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)