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

square

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

Declaration 宣言

var square: SymbolVariants { get }

Discussion 議論

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


Label("Fill Square", systemImage: "star")
    .symbolVariant(.fill.square)

A screenshot of a label that shows a star in a filled square

See Also 参照

Modifying a Variant