Dynamically modifying the configuration properties of a widget?

Is there any way to modify the configurationDisplayName, description, or supportedFamilies properties, or are they essentially fixed per app version in the App Store?

Code Block
struct MyWidget: Widget {
var body: some WidgetConfiguration {
StaticConfiguration(...) { ... }
.configurationDisplayName("foo")
.description("bar")
.supportedFamilies([.systemSmall, .systemMedium])
}
}


Eg, say if the user reaches an "expert" level in a game, only then do I want to make the .systemLarge size available to them. In such a case, I'd like to modify the supportedFamilies property and not have them essentially fixed in the binary.

In my testing, it seems that the widget body code is only ever run once.

I'm wondering the same thing. It does seem like it's only run once though, as you said. :/

Hi - did either of you ever figure out if this is possible? I’m looking to do something similar.

Dynamically modifying the configuration properties of a widget?
 
 
Q