Can one convert a PhotosPickerItem to a string and then later convert the string back in order to access the image from the gallery
I have an Android app that I am attempting to port to iOS. In the Android app, I associate an image from the photo gallery with a person’s name. I do this by, after having chosen the appropriate image, converting the image’s URI to a string and saving it in my database. Then later, when I selected that person, I convert the string back to a URI and use it to access the appropriate image in the photo gallery. In all of the threads that I have seen so far, people are trying to save the actual image somewhere in order to recall it later. I don’t want to do that since the image is already in the gallery. In SwiftUI, is it possible to convert a PhotosPickerItem value to a string, and later, convert that string back to a PhotosPickerItem in order to access the image in the photo gallery?
Image is being rendered with 1/3 of screen width
I have a bunch of high resolution images which come with the app.