---
title: "listRowSeparatorTint(_:edges:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/listrowseparatortint(_:edges:)"
---

# listRowSeparatorTint(_:edges:)

Sets the tint color associated with a row.

## Declaration

```swift
nonisolated func listRowSeparatorTint(_ color: Color?, edges: VerticalEdge.Set = .all) -> some View

```

## Parameters

- `color`: The color to use to tint the row separators, or nil to use the default color for the current list style.
- `edges`: The set of row edges for which the tint applies. The list style might decide to not display certain separators, typically the top edge. The default is doc://com.apple.SwiftUI/documentation/SwiftUI/VerticalEdge/Set/all.

## Discussion

Discussion Separators can be presented above and below a row. You can specify to which edge this preference should apply. This modifier expresses a preference to the containing List. The list style is the final arbiter for the separator tint. The following example shows a simple grouped list whose row separators are tinted based on row-specific data: List {     ForEach(garage.cars) { car in         Text(car.model)             .listRowSeparatorTint(car.brandColor)     } } .listStyle(.grouped) To hide a row separators, use listRowSeparator(_:edges:). To hide or change the tint color for a section separator, use listSectionSeparator(_:edges:) and listSectionSeparatorTint(_:edges:).

## See Also

### Configuring separators

- [listSectionSeparatorTint(_:edges:)](swiftui/view/listsectionseparatortint(_:edges:).md)
- [listRowSeparator(_:edges:)](swiftui/view/listrowseparator(_:edges:).md)
- [listSectionSeparator(_:edges:)](swiftui/view/listsectionseparator(_:edges:).md)
