---
title: "inset(alternatesRowBackgrounds:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/liststyle/inset(alternatesrowbackgrounds:)"
---

# inset(alternatesRowBackgrounds:)

The list style that describes the behavior and appearance of an inset list with optional alternating row backgrounds.

## Declaration

```swift
static func inset(alternatesRowBackgrounds: Bool) -> InsetListStyle
```

## Parameters

- `alternatesRowBackgrounds`: Whether the rows should alternate their backgrounds to help visually distinguish them from each other.

## See Also

### Deprecated styles

- [bordered(alternatesRowBackgrounds:)](swiftui/liststyle/bordered(alternatesrowbackgrounds:).md)
