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

# inset(alternatesRowBackgrounds:)

The table style that describes the behavior and appearance of a table with its content and selection inset from the table edges.

## Declaration

```swift
@MainActor @preconcurrency static func inset(alternatesRowBackgrounds: Bool) -> InsetTableStyle
```

## Parameters

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

## See Also

### Deprecated styles

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