Is it possible to get the WidgetInfo id for the widget that is currently providing a timeline?

Viewed 62

WidgetCenter.shared.getCurrentConfigurations() returns a list of WidgetInfo structs (one for each widget the user has set up), each of which includes an id parameter which Apple says is "the stable identity of the widget".

Is there any way to get that same stable id for a widget while it is providing its timeline? In other words, I want to access the current widget's WidgetInfo struct while we are constructing a timeline for that widget in the getTimeline(for...) implementation of IntentTimelineProvider.

0 Answers
Related