'How do I permanently save images to device without syncing outside of device - SWIFTUI
In a previous question, I was able to get working saving images to Documents. I guess I misunderstood how that worked as when the app gets deleted, all the images saved to documents also get deleted. Is there a way to save images to the device, so that if the app was deleted and reinstalled, those images would still be accessible?
Background:
I have an app that keeps track of a collection of items for the user. The user base is a private bunch, and I know that they would not want the collection saved to the cloud to be synced that way. So my goal is to export the data to a csv that they can save and reimport if needed. One of the attributes is a picture. You cannot export pictures to a csv so instead I saved them to documents using file manager. But, on app deletion, that data gets deleted as well. Is there a way to export the photos permanently, so that even if they deleted the app, but later reinstalled and then imported the csv, that the images would still be there?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
