Thanks for the reply and sorry for the delay. That’s correct, these are all images that were created with Image Playground but Image Playground is out of the picture as far as this issue is concerned.
When Image Playground returns the image we get back a temp URL. From that I grab the filename:
tmpURL.lastPathComponent
Then I get the Docs dir and move the image there.
guard let documentsDirectory = globalFileManager.urls(for: .documentDirectory, in: .userDomainMask).first else {
let destinationURL = documentsDirectory.appendingPathComponent(filename)
try globalFileManager.moveItem(at: tmpURL, to: destinationURL)
I save the new URL and use it to load the image when needed. I’ve still got all the URLs (and the VoiceOver descriptions that were added to any images) but the files themselves aren’t found any more. That does correspond to me not seeing them when I look at the app’s container. Although I do see the single test image I created after I noticed this problem.
Topic:
Machine Learning & AI
SubTopic:
Apple Intelligence
Tags: