---
title: PhotosPickerItem
framework: photosui
role: symbol
role_heading: Structure
path: photosui/photospickeritem
---

# PhotosPickerItem

A type that represents an item you use with a Photos picker.

## Declaration

```swift
struct PhotosPickerItem
```

## Overview

Overview The selection results you get from PhotosPicker are placeholder objects. A PhotosPickerItem conforms to Transferable, and allows you to load the representation you request. To load a SwiftUI Image and track progress, use loadTransferable(type:completionHandler:). func loadTransferable(from imageSelection: PhotosPickerItem) -> Progress {     return imageSelection.loadTransferable(type: Image.self) { result in         DispatchQueue.main.async {             guard imageSelection == self.imageSelection else { return }             switch result {             case .success(let image?):                 // Handle the success case with the image.             case .success(nil):                 // Handle the success case with an empty value.             case .failure(let error):                 // Handle the failure case with the provided error.             }         }     } } A failure can occur when the system attempts to retrieve the data. For example, if the picker tries to download data from iCloud Photos without a network connection. important: Image only supports PNG file types through its Transferable conformance. For more information on creating a custom Transferable model to support other image types, see Bringing Photos picker to your SwiftUI app.

## Topics

### Creating a picker item

- [init(itemIdentifier:)](photosui/photospickeritem/init(itemidentifier:).md)

### Inspecting a picker item

- [itemIdentifier](photosui/photospickeritem/itemidentifier.md)
- [supportedContentTypes](photosui/photospickeritem/supportedcontenttypes.md)

### Getting an encoding policy

- [PhotosPickerItem.EncodingDisambiguationPolicy](photosui/photospickeritem/encodingdisambiguationpolicy.md)

### Loading the provider’s contents

- [loadTransferable(type:)](photosui/photospickeritem/loadtransferable(type:).md)
- [loadTransferable(type:completionHandler:)](photosui/photospickeritem/loadtransferable(type:completionhandler:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Photos picker for SwiftUI

- [Bringing Photos picker to your SwiftUI app](photokit/bringing-photos-picker-to-your-swiftui-app.md)
- [Implementing an inline Photos picker](photokit/implementing-an-inline-photos-picker.md)
- [PhotosPicker](photosui/photospicker.md)
- [PhotosPickerSelectionBehavior](photosui/photospickerselectionbehavior.md)
- [PhotosPickerStyle](photosui/photospickerstyle.md)
