I ended up using PHAssetResource to get the resource then call PHAssetResourceManager.writeData to save the image to a temporary file. That way I can still share an array of file URLs. Nice thing about this is it shows metadata in the share sheet, most useful when sharing a single file.
Post
Replies
Boosts
Views
Activity
Thanks, this is what I’m using now, I then convert that data to a UIImage to share, but this has several problems noted above :)
Thanks so much for the follow-up 🥺
Confirmed, thanks!!
Thanks, though I believe that would not be necessary to achieve this since the app can trigger the widget to reload. What we need is the main iOS app to enable NSPersistentCloudKitContainer to sync in the background right, is that possible?
Thanks, I have submitted FB9141288
Okay I have filed FB9115323, thank you
Thanks @JoeKun, that's an interesting approach. Looks like there's a new native SDK that may be able to accomplish the same thing as the Web SDK you've linked to? Would you happen to have any sample/pseudo code to demonstrate the idea? Thanks!
I agree, it could be an accidental duplicate, or you simply decided it’s not the right question to ask because for example you misunderstood something or decided to take a different approach. It generally just feels kinda wrong to not be able to delete your data.
Hi @JoeKun! I tried this out but the app crashes with exception:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'MPMediaPropertyPredicate cannot filter using the playbackStoreID property.'