---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/viewalignedscrolltargetbehavior/limitbehavior/automatic
---

# automatic

The automatic limit behavior.

## Declaration

```swift
static var automatic: ViewAlignedScrollTargetBehavior.LimitBehavior { get }
```

## Discussion

Discussion By default, the behavior will be limited in compact horizontal size classes and will not be limited otherwise.

## See Also

### Getting the limit behavior

- [always](swiftui/viewalignedscrolltargetbehavior/limitbehavior/always.md)
- [never](swiftui/viewalignedscrolltargetbehavior/limitbehavior/never.md)
