The color to use to tint the content, or nil to not override the inherited tint.
Instance Method
インスタンスメソッド
list
listItemTint(_:)
Sets a fixed tint color associated with specific content in a list.
Availability 有効性
- iOS 14.0+
- iPadOS 14.0+
- macOS 11.0+
- Mac Catalyst 14.0+
- tvOS 14.0+
- watchOS 7.0+
Technology
- Swift
UI
Declaration 宣言
Parameters パラメータ
color
Discussion 議論
This is equivalent to using a tint of List
with the provided tint
color.
The containing list’s style will apply that tint as appropriate. 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.