<!--
{
  "availability" : [
    "watchOS: 6.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/listRowPlatterColor(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE19listRowPlatterColoryQrAA0G0VSgF"
  },
  "title" : "listRowPlatterColor(_:)"
}
-->

# listRowPlatterColor(_:)

Sets the color that the system applies to the row background when this
view is placed in a list.

```
nonisolated func listRowPlatterColor(_ color: Color?) -> some View
```

## Parameters

`color`

The [`Color`](/documentation/SwiftUI/Color) to apply to the system cell.

## Return Value

A view with the specified `color` applied to the system cell.

## Discussion

Use `listRowPlatterColor(_:)` to set the underlying row
background color in a list.

In the example below, the `Flavor` enumeration provides content for list
items. The SwiftUI [`List`](/documentation/SwiftUI/List) builder iterates over the `Flavor`
enumeration and extracts the raw value of each of its elements using the
resulting text to create each list row item. After the list builder
finishes, the `listRowPlatterColor(_:)` modifier sets the underlying row
background color to the [`Color`](/documentation/SwiftUI/Color) you specify.

```
struct ContentView: View {
    enum Flavor: String, CaseIterable, Identifiable {
        var id: String { self.rawValue }
        case vanilla, chocolate, strawberry
    }

    var body: some View {
        List {
            ForEach(Flavor.allCases) {
                Text($0.rawValue)
                    .listRowPlatterColor(.green)
            }
        }
    }
}
```

---

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)