---
title: Anchor.Source
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/anchor/source
---

# Anchor.Source

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

## Declaration

```swift
@frozen struct Source
```

## Overview

Overview SwiftUI passes anchored geometry values around the view tree via preference keys. It then converts them back into the local coordinate space using a GeometryProxy value.

## Topics

### Getting point anchor sources

- [point(_:)](swiftui/anchor/source/point(_:).md)
- [unitPoint(_:)](swiftui/anchor/source/unitpoint(_:).md)

### Getting rectangle anchor sources

- [rect(_:)](swiftui/anchor/source/rect(_:).md)
- [bounds](swiftui/anchor/source/bounds.md)

### Getting top anchor sources

- [topLeading](swiftui/anchor/source/topleading.md)
- [top](swiftui/anchor/source/top.md)
- [topTrailing](swiftui/anchor/source/toptrailing.md)

### Getting middle anchor sources

- [leading](swiftui/anchor/source/leading.md)
- [center](swiftui/anchor/source/center-869al.md)
- [trailing](swiftui/anchor/source/trailing.md)

### Getting bottom anchor sources

- [bottomTrailing](swiftui/anchor/source/bottomtrailing.md)
- [bottom](swiftui/anchor/source/bottom.md)
- [bottomLeading](swiftui/anchor/source/bottomleading.md)

### Creating an anchor source

- [init(_:)](swiftui/anchor/source/init(_:).md)

### Type Properties

- [bounds3D](swiftui/anchor/source/bounds3d.md)
- [center](swiftui/anchor/source/center-6w6ww.md)
- [center3D](swiftui/anchor/source/center3d.md)

### Type Methods

- [point3D(_:)](swiftui/anchor/source/point3d(_:).md)
- [rect3D(_:)](swiftui/anchor/source/rect3d(_:).md)
- [unitPoint3D(_:)](swiftui/anchor/source/unitpoint3d(_:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
