---
title: alignment
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/scrollanchorrole/alignment
---

# alignment

The role that influences how a scroll view should align its content when the size of its content is smaller than the container size of the scroll view.

## Declaration

```swift
static var alignment: ScrollAnchorRole { get }
```
