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

# bordered(alternatesRowBackgrounds:)

The list style that describes the behavior and appearance of a list with standard border.

## Declaration

```swift
static func bordered(alternatesRowBackgrounds: Bool) -> BorderedListStyle
```

## Parameters

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

## Discussion

Discussion Bordered lists are expected to be inset from their outer containers, but do not have inset style rows or selection.

## See Also

### Deprecated styles

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