saoudrizwan / Disk

Easily persist structs, images, and data on iOS
MIT License
3.1k stars 170 forks source link

Save image to Photo library #38

Closed aabanaag closed 6 years ago

aabanaag commented 6 years ago

I saved the image using Disk.save(image, to: .documents, as: "CustomAlbum/filename.jpg") but how will it be saved to the actual photo library? its only stored in app's data is there a way to also save it onto the actual device also?

saoudrizwan commented 6 years ago

This is beyond the scope of Disk. Disk's primary purpose is to persist to the file system, not connect to other various Apple APIs. Here's a walkthrough of saving an image to the file system: https://stackoverflow.com/a/40858152/3502608