Contents

rectangle

A version of the variant that’s encapsulated in a rectangle.

Declaration

var rectangle: SymbolVariants { get }

Discussion

Use this property to modify a variant like fill so that it’s also contained in a rectangle:

Label("Fill Rectangle", systemImage: "plus")
    .symbolVariant(.fill.rectangle)

[Image]

See Also

Modifying a variant