DeviceActivityMonitor does not trigger UI updates

There is a way to allow DeviceActivityMonitor to make UI changes?

Currently I have some code in the intervalDidStart and intervalDidEnd that updates Core Data entities, and it works correctly.

However, the changes are only reflected if the app is terminated and opened again. Thus, if the app is opened and one of the methods inside the DeviceActivityMonitor is being called, the UI won't be updated.

PS: I am using @FetchRequest to retrieve the core data entities called BlockEntity, and I have a little circle in the UI which should indicate the status of the block: active/inactive, so it would be nice to update the color in real time when intervalDidStart or intervalDidEnd are called.

DeviceActivityMonitor does not trigger UI updates
 
 
Q