---
title: AlternatingRowBackgroundBehavior
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/alternatingrowbackgroundbehavior
---

# AlternatingRowBackgroundBehavior

The styling of views with respect to alternating row backgrounds.

## Declaration

```swift
struct AlternatingRowBackgroundBehavior
```

## Overview

Overview Use values of this type with the alternatingRowBackgrounds(_:) modifier.

## Topics

### Getting alternating row background behavior

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

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring backgrounds

- [listRowBackground(_:)](swiftui/view/listrowbackground(_:).md)
- [alternatingRowBackgrounds(_:)](swiftui/view/alternatingrowbackgrounds(_:).md)
- [backgroundProminence](swiftui/environmentvalues/backgroundprominence.md)
- [BackgroundProminence](swiftui/backgroundprominence.md)
