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

# automatic

The automatic alternating row background behavior.

## Declaration

```swift
static let automatic: AlternatingRowBackgroundBehavior
```

## Discussion

Discussion This defers to default component behavior for alternating row backgrounds. Some components, such as Table on macOS, will default to having alternating row backgrounds; while List does not.

## See Also

### Getting alternating row background behavior

- [enabled](swiftui/alternatingrowbackgroundbehavior/enabled.md)
- [disabled](swiftui/alternatingrowbackgroundbehavior/disabled.md)
