×

Preview Widget

iOS 14 +

Notes

Preview a widget. You can find more info at https://widgetpack.app/documentation

Syntax

previewWidget(view: <#Object (View)#>, size: <#Enumeration (WidgetFamily)#>)

Example

previewWidget(view: View(identifier: "View1", displayString: "View One"), size: medium)