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.
compose().listItemTint(tint: SwiftUI.ListItemTint | null)nonisolated func listItemTint(_ tint: ListItemTint?) -> some ViewParameters
tint*SwiftUI.ListItemTint | nullThe tint effect to use. Use
nilto 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.
- deleteDisabledAdds a condition for whether the view's view hierarchy is deletable.
- listRowBackgroundPlaces a custom background view behind a list row item.
- listRowInsetsSets the insets of rows in a list on the specified edges.
- listRowSeparatorSets the display mode for the separator associated with this specific row.
- listRowSeparatorTintSets the tint color associated with a row.
- listRowSpacingSets the vertical spacing between two adjacent rows in a List.
- listSectionIndexVisibilityChanges the visibility of the list section index.
- listSectionMarginsSet the section margins for the specific edges.
- listSectionSeparatorSets whether to hide the separator associated with a list section.
- listSectionSeparatorTintSets the tint color associated with a section.
- listSectionSpacingSets the spacing between adjacent sections in a List to a custom value.
- moveDisabledAdds a condition for whether the view's view hierarchy is movable.