Type Property 型プロパティ

monochrome

A mode that renders symbols as a single layer filled with the foreground style.

Declaration 宣言

static let monochrome: SymbolRenderingMode

Discussion 議論

For example, you can render a filled exclamation mark triangle in purple:


Image(systemName: "exclamationmark.triangle.fill")
    .symbolRenderingMode(.monochrome)
    .foregroundStyle(Color.purple)

See Also 参照

Getting Symbol Rendering Modes