---
title: square
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/symbolvariants/square-swift.property
---

# square

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

## Declaration

```swift
var square: SymbolVariants { get }
```

## Discussion

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)

## See Also

### Modifying a variant

- [circle](swiftui/symbolvariants/circle-swift.property.md)
- [rectangle](swiftui/symbolvariants/rectangle-swift.property.md)
- [fill](swiftui/symbolvariants/fill-swift.property.md)
- [slash](swiftui/symbolvariants/slash-swift.property.md)
