I'm writing an app which allow users to pick images from photo library by swiftUI. I wrap PHPickerViewController in representable to achieve the functionality. The benefit is that users don’t need to explicitly authorize my app to select photos.
func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult])
Currently, I get images by picker(::) method above and save images in my app in order to reload images the next time users launch the app without needs to request authorization.
Obviously, if the app stores references to the selected images, rather than images themselves, it can prevent from taking up large amounts of space. Is it meaning that I have to prompt to users for requesting authorization to access the library? Is there any approach only to use references and reload images which were selected by users previously from photo library using PHPickerViewController, supporting no need to request authorization.