It's related to SharePlay. See What's new in SharePlay from WWDC22.
tl;dw when allowsProminentActivity is true the green Share Play button is shown at the top of the sheet, when false it's shown down below with the other actions.
Post
Replies
Boosts
Views
Activity
You should use URLSession to download the images in your timeline provider then pass the URLs to these files to your view. If you're still hitting the memory limit then resize them (for example using UIImage.preparingThumbnail(of:)) before displaying them in a view.
Don't use Data(contentsOf:) to download anything from the internet. You also don't need to wrap your views in AnyView.
The crash means you're going over the memory limit for widget extensions, which is currently 30MB as you can see from the error message. It's pretty easy to hit this limit, especially if you're working with images. Some things you can try are:
downloading the images directly to the file system and passing around their URLs
resizing large images to 46x46/61x61 before they're displayed
UIApplicationShortcutItem works like NSArray in that they both immutable but provide mutable subclasses (ie UIMutableApplicationShortcutItem and NSMutableArray). Therefore if you want to set the targetContentIdentifier for a shortcut item you have to do something like the following:
let shortcutItem = UIMutableApplicationShortcutItem(type: "com.myapp.shortcut", localizedTitle: "Shortcut")
shortcutItem.targetContentIdentifier = "myapp://shortcut"
UIApplication.shared.shortcutItems = [shortcutItem]