×

Update Widget

iOS 14 +

Notes

Update a named widget with a new view. You can assign a URL to open when the widget is tapped. Note that if you execute this action too many times, then iOS might delay an update. You can use 'Preview Widget' to quickly compare changes you're making. You can find more info at https://widgetpack.app/documentation

Syntax

updateWidget(view: <#Object (View)#>, name: <#String (Allows Variables)#>, widgetURL: <#String (Allows Variables)#>)

Example

updateWidget(view: View(identifier: "View1", displayString: "View One"), name: ""Main Widget"", widgetURL: ""https://jellycuts.com"")