ListItemTint
A tint effect configuration that you can apply to content in a list.
Declaration
type ListItemTint = 'monochrome' | { fixed: Color; } | { preferred: Color; };struct ListItemTintPass a literal, or build one with SwiftUI.ListItemTint from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'monochrome'SwiftUI.ListItemTint.monochromeA standard grayscale tint effect.
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.
- ListSectionSpacingThe spacing options between two adjacent sections in a list.
- PaletteSelectionEffectThe selection effect to apply to a palette item.
- SectionCollectionAn opaque collection representing the sections of view.
- SensoryFeedbackSelectionFeedbackFeedback that can be played in response to a specific UI element's values changing.
- TableColumnContentA type used to represent columns within a table.