Not sure if I completely understand what you are trying to achieve, but an interactive widget can include a button or toggle, which, when tapped, can perform a task like retrieving data from your Core Data store in a shared App Group container, and doing calculation. This is detailed in Adding interactivity to widgets and Live Activities. The built-in Clock widget in iOS provides a configuration UI that allows selecting a city from a long list. Does it fit your use case? If a configureable widget doesn't fit, providing a button in your widget for users to tap and launch your app to do the configuration may be a choice? Best, —— Ziqiao Chen Worldwide Developer Relations.
Topic:
App & System Services
SubTopic:
Widgets & Live Activities
Tags: