Post

Replies

Boosts

Views

Activity

Preselect PhotoPickerItems from Image when reopening PhotosPicker
I'm using the PhotosPicker in my SwiftUI project, like it is provided in the sample code (https://developer.apple.com/documentation/photokit/bringing-photos-picker-to-your-swiftui-app). Currently it is set up like that: the app loads the images and stores them in CoreData to MyEntity as binary data. However, when a user wants to update the photos there seems to be no possibility to check if the already stored image is already part of the current MyEntity. This means, there seems to be no possibility to preselect already existing images that were selected in a previous session. Trying to use localIdentifier didn't work either, as it is always nil. Now I'm wondering, if anyone has an idea on how to solve the given issue, or if there is no option to do so. Any information is appreciated. Thanks!
2
0
393
Jan ’25