---
title: widgetFamily
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/environmentvalues/widgetfamily
---

# widgetFamily

The template of the widget — small, medium, or large.

## Declaration

```swift
var widgetFamily: WidgetFamily { get }
```

## Discussion

Discussion Use this value to retrieve the widget size that the user chose for a widget.

## See Also

### Widgets

- [showsWidgetContainerBackground](swiftui/environmentvalues/showswidgetcontainerbackground.md)
- [showsWidgetLabel](swiftui/environmentvalues/showswidgetlabel.md)
- [widgetRenderingMode](swiftui/environmentvalues/widgetrenderingmode.md)
- [widgetContentMargins](swiftui/environmentvalues/widgetcontentmargins.md)
