dmytro-anokhin/url-image

Save URLImage to Photos library ?

h-elbeheiry opened this issue · 1 comments

HI, I'm trying to be able to allow the user to save URL image to his device for example on a button press, can't seem to be able to figure out how with SwiftUI.

Hey,

this is a bit beyond the package scope, but you can fetch an image and store it using PhotoKit. Use this gist URLImageService+FetchImage.swift and Requesting Changes to the Photo Library documentation for reference. From there it should be straightforward to implement.

Note: URLImageFileStore allows you to access image file location using getImageLocation method.

Hope this helps.