<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnchoringComponent/Target-swift.enum/Alignment",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18AnchoringComponentV6TargetO9AlignmentV"
  },
  "title" : "AnchoringComponent.Target.Alignment"
}
-->

# AnchoringComponent.Target.Alignment

Defines the alignment of real-world surfaces to seek as targets.

```
struct Alignment
```

## Topics

### Choosing an alignment

[`static let horizontal: AnchoringComponent.Target.Alignment`](/documentation/RealityKit/AnchoringComponent/Target-swift.enum/Alignment/horizontal)

Horizontal surfaces.

[`static let vertical: AnchoringComponent.Target.Alignment`](/documentation/RealityKit/AnchoringComponent/Target-swift.enum/Alignment/vertical)

Vertical surfaces.

[`static let any: AnchoringComponent.Target.Alignment`](/documentation/RealityKit/AnchoringComponent/Target-swift.enum/Alignment/any)

Surfaces of any alignment.

## Relationships

### Conforms To

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

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

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

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

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

---

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)