<!--
{
  "availability" : [
    "macOS: 12.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ListStyle/bordered(alternatesRowBackgrounds:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI9ListStylePA2A08BorderedcD0VRszrlE8bordered24alternatesRowBackgroundsAESb_tFZ"
  },
  "title" : "bordered(alternatesRowBackgrounds:)"
}
-->

# bordered(alternatesRowBackgrounds:)

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

```
@export(implementation) static func bordered(alternatesRowBackgrounds: Bool) -> BorderedListStyle
```

## Parameters

`alternatesRowBackgrounds`

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

## Discussion

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

---

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)