Contents

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