<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/InsetTableStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15InsetTableStyleV"
  },
  "title" : "InsetTableStyle"
}
-->

# InsetTableStyle

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

```
nonisolated struct InsetTableStyle
```

## Overview

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

## Topics

### Creating the table style

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

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

[`init(alternatesRowBackgrounds: Bool)`](/documentation/SwiftUI/InsetTableStyle/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)