saoudrizwan / Disk

Delightful framework for iOS to easily persist structs, images, and data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Save image to Photo library

aabanaag opened this issue · comments

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?

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