Closest I've found as a response to this is around "15 mins" from https://developer.apple.com/forums/thread/653265?answerId=619739022#619739022
Updating every minute is far too aggressive. Widgets have a limited number of updates and if you were to try to update every minute, you'll quickly run out of updates. While debugging with Xcode these limits are not imposed, but if you're running your app outside of Xcode you'd see the behavior you're describing where your widget would stop updating. What happens if you update every 15 minutes? If that doesn't work, please file a Feedback Assistant report with the details of what you're doing and the results you see. Posted by pdm - https://developer.apple.com/forums/profile/pdm
Post
Replies
Boosts
Views
Activity
When storing in an app group as explained by BrandonK212, https://developer.apple.com/forums/thread/716902?answerId=731691022#731691022, it seems like using a combination of Data(contentsOf:) with a file URL and UIImage(data:) worked for me, where UIImage(contentsOfFile:) did not.
Related thread that suggests Apple recommends the app group approach at least: https://developer.apple.com/forums/thread/715170
I'm seeing similar issues, I can't get general colours to be forced to be what I want, even when just wanting black vs white... It's changing gradients and backgrounds of images that are expecting black always, so that content on top can be white and visible, but instead get forced white meaning it's not visible...
I thought I could get away with using something like widgetAccentable(false) but it doesn't do anything:
// this gets forced white...
Color.black
// this does nothing
.widgetAccentable(false)
.overlay(
Image(uiImage: image)
.resizable()
.widgetAccentedRenderingMode(.fullColor)
.aspectRatio(contentMode: .fit)
.clipped()
.padding(padding)
)