listItemTint

Sets the tint effect for content in a list.

View ModifieriOS 14.0+macOS 11.0+tvOS 14.0+watchOS 7.0+

Overloads

2 ways to call compose().listItemTint(). Each is one SwiftUI overload, picked by the arguments you pass.

React
compose().listItemTint(tint: SwiftUI.ListItemTint | null)
Swift
nonisolated func listItemTint(_ tint: ListItemTint?) -> some View

Parameters

  • The tint effect to use. 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

More in Lists and tables.