I want to detect if widget is removed, so I can cleanup. Currently even though widget is removed, the cache is left out and can rise some privacy/security concerns. Thanks!
Post
Replies
Boosts
Views
Activity
Though I moved most of the code to a framework to be able to unit test, still the timelineProvider code is not able to unit test, mainly because Context can't even be created.
Please let me know the best practice for unit testing widgets code. Thanks!
I have a static widget as below and deployed to production.
struct ABCWidget: Widget {
		let kind: String = "xyzWidget"
		var body: some WidgetConfiguration {
					 StaticConfiguration(kind: kind,
}
Now I want to change the kind to "abcWidget" but when I do it, on the upgrade I see a black box for the installed widget. Is there any way to do this change without impacting existing customers.
Thanks!