---
title: anchor
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/scrolltarget/anchor
---

# anchor

The anchor to which the rect should be aligned within the visible region of the scrollable view.

## Declaration

```swift
var anchor: UnitPoint?
```

## See Also

### Getting the scroll target

- [rect](swiftui/scrolltarget/rect.md)
