<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/BorderedTableStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18BorderedTableStyleV"
  },
  "title" : "BorderedTableStyle"
}
-->

# BorderedTableStyle

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

```
nonisolated struct BorderedTableStyle
```

## Overview

You can also use [`bordered`](/documentation/SwiftUI/TableStyle/bordered) to construct this style.

## Topics

### Creating the table style

[`init()`](/documentation/SwiftUI/BorderedTableStyle/init())

Creates a default bordered table style, with alternating row
backgrounds.

[`init(alternatesRowBackgrounds: Bool)`](/documentation/SwiftUI/BorderedTableStyle/init(alternatesRowBackgrounds:))

Creates an inset table style with optional alternating row backgrounds.

## Relationships

### Conforms To

[`TableStyle`](/documentation/SwiftUI/TableStyle)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)