init(family:)
Creates a context for previewing a widget or a widget’s view.
Declaration
init(family: WidgetFamily)Parameters
- family:
The template the widget preview uses: small, medium, or large.
Creates a context for previewing a widget or a widget’s view.
init(family: WidgetFamily)The template the widget preview uses: small, medium, or large.