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

# SpatialTemplateElementAxis

An axis to use when aligning elements in a spatial template.

```
struct SpatialTemplateElementAxis
```

## Overview

When configuring the elements of a spatial template, you can specify
directions that orient a participant with the x- or z-axis of the
shared coordinate space. These alignments rotate the participant around
the y-axis to face the specified axis.

## Topics

### Type Properties

[`static let x: SpatialTemplateElementAxis`](/documentation/GroupActivities/SpatialTemplateElementAxis/x)

The x-axis of alignment.

[`static let z: SpatialTemplateElementAxis`](/documentation/GroupActivities/SpatialTemplateElementAxis/z)

The z-axis of alignment.

## Relationships

### Conforms To

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

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

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

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

---

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)