<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Anchor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI6AnchorV"
  },
  "title" : "Anchor"
}
-->

# Anchor

An opaque value derived from an anchor source and a particular view.

```
@frozen struct Anchor<Value>
```

## Overview

You can convert the anchor to a `Value` in the coordinate space of a target
view by using a [`GeometryProxy`](/documentation/SwiftUI/GeometryProxy) to specify the target view.

## Topics

### Getting the anchor’s source

[`Source`](/documentation/SwiftUI/Anchor/Source)

A type-erased geometry value that produces an anchored value of a given
type.

## Relationships

### Conforms To

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

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

[`CoordinateSpaceValue3D`](/documentation/Spatial/CoordinateSpaceValue3D)

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

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

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

[`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)