Instance Property インスタンスプロパティ

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)

A screenshot of a label that shows a plus sign in a filled rectangle

See Also 参照

Modifying a Variant