One Logo Pool Ball
SwiftUI · IOS API REFERENCE

ListItemTint

struct · iOS 14.0+ · SDK 27.1

struct ListItemTint

A tint effect configuration that you can apply to content in a list. 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.

Members (3)

get · iOS 14.0+

monochrome

TypeScript
static get monochrome(): ListItemTint
Swift declaration
static let monochrome: ListItemTint

A standard grayscale tint effect. The system doesn't override monochrome tints.

static · iOS 14.0+

fixed

TypeScript
static fixed(tint: _SwiftUICore_Color): ListItemTint
Swift declaration
static func fixed(_ tint: Color) -> ListItemTint

An explicit tint color. The system doesn't override this tint effect. - Parameter tint: The color to use to tint the content.

static · iOS 14.0+

preferred

TypeScript
static preferred(tint: _SwiftUICore_Color): ListItemTint
Swift declaration
static func preferred(_ tint: Color) -> ListItemTint

An explicit tint color that the system can override. On macOS, the system can override this tint with the person's chosen accent color when one is set. Use ``fixed(_:)`` to prevent the system from overriding the tint. - Parameter tint: The color to use to tint the content.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →