Why isn't PhotosPickerItem Sendable? Is it thread-safe?

Currently, PhotosPickerItem cannot be used from async/await code safely, for example in Tasks etc., because it does not conform to Sendable.

The public api has only two properties, both of which are of a Sendable type: UTType and String?.

Is this something that's going to be changed so I can mark it as @unchecked Sendable in my code, or is there an actual underlying reason why PhotosPickerItem is not Sendable?

PHAsset, PHAssetCollection, PHFetchRequest, PHObject are all sendable, because - similarly to PhotosPickerItem - they contain no actual image data, they are just a preliminary representation of an image in the Photos app.

Post not yet marked as solved Up vote post of erdeszbalazs Down vote post of erdeszbalazs
490 views