Type Property 型プロパティ

multicolor

A mode that renders symbols as multiple layers with their inherit styles.

Declaration 宣言

static let multicolor: SymbolRenderingMode

Discussion 議論

The layers may be filled with their own inherent styles, or the foreground style. For example, you can render a filled exclamation mark triangle in its inherent colors, with yellow for the triangle and white for the exclamation mark:


Image(systemName: "exclamationmark.triangle.fill")
    .symbolRenderingMode(.multicolor)

See Also 参照

Getting Symbol Rendering Modes