I'm trying to present a share sheet with an image. I'd expect the "Save Image" option to be there but it's not. Is there some trick to getting this working?
1 Answer
The poorly documented solution (and wildly unnecessary from a privacy standpoint since it requires no user approval?) is to add NSPhotoLibraryAddUsageDescription to your info.plist. Then the option will magically appear. 🙃✌️
6 Comments
NFC.cool
Just tried that, doesn't seem to work anymore... I can save it to files though. What a stupid rule...
Warpling
This is ringing a bell for me… Is it possible that you're trying to save a PNG?
NFC.cool
Oh, so i should try to save it as a jpeg? Gonna try that later…
NFC.cool
Doesn't seem to work. I tried jpegData, pngData and UIImage...
Warpling
Is this the only activity item?
NFC.cool
Yeah, it's the only one