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

# bordered(alternatesRowBackgrounds:)

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

## Declaration

```swift
@MainActor @preconcurrency static func bordered(alternatesRowBackgrounds: Bool) -> BorderedTableStyle
```

## Parameters

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

## Discussion

Discussion Bordered tables 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/tablestyle/inset(alternatesrowbackgrounds:).md)
