Contents

listItemTint(_:)

Sets a fixed tint color for content in a list.

Declaration

nonisolated func listItemTint(_ tint: Color?) -> some View

Parameters

  • tint:

    The color to use to tint the content. Use nil to avoid overriding the inherited tint.

Discussion

The containing list’s style applies the tint as appropriate. For example, watchOS uses the tint color for its background platter appearance. Sidebars on iOS and macOS apply the tint color to their Label icons, which otherwise use the accent color by default.

See Also

Configuring rows