ListItemTint

A tint effect configuration that you can apply to content in a list.

StructureiOS 14.0+macOS 11.0+tvOS 14.0+watchOS 7.0+ListItemTint in SwiftUI

Declaration

React
type ListItemTint = 'monochrome' | { fixed: Color; } | { preferred: Color; };
Swift
struct ListItemTint

Pass a literal, or build one with SwiftUI.ListItemTint from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Type methods

Overview

Use one of these tint values with the View.listItemTint(_:) view modifier. The containing list applies the tint in a platform-specific way. On iOS and macOS, sidebars apply the tint color to Label icons, which otherwise use the app's accent color by default.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Lists and tables.