---
title: PHPickerConfiguration
framework: photosui
role: symbol
role_heading: Structure
path: photosui/phpickerconfiguration-swift.struct
---

# PHPickerConfiguration

An object that contains information about how to configure a picker view controller.

## Declaration

```swift
struct PHPickerConfiguration
```

## Topics

### Creating a configuration

- [init()](photosui/phpickerconfiguration-swift.struct/init().md)
- [init(photoLibrary:)](photosui/phpickerconfiguration-swift.struct/init(photolibrary:).md)

### Filtering asset types

- [filter](photosui/phpickerconfiguration-swift.struct/filter.md)
- [PHPickerFilter](photosui/phpickerfilter-swift.struct.md)

### Selecting the preferred asset representation

- [preferredAssetRepresentationMode](photosui/phpickerconfiguration-swift.struct/preferredassetrepresentationmode.md)
- [PHPickerConfiguration.AssetRepresentationMode](photosui/phpickerconfiguration-swift.struct/assetrepresentationmode.md)

### Preselecting assets

- [preselectedAssetIdentifiers](photosui/phpickerconfiguration-swift.struct/preselectedassetidentifiers.md)

### Setting the selection limit

- [selectionLimit](photosui/phpickerconfiguration-swift.struct/selectionlimit.md)
- [selection](photosui/phpickerconfiguration-swift.struct/selection-swift.property.md)
- [PHPickerConfigurationSelection](photosui/phpickerconfigurationselection.md)
- [PHPickerConfiguration.Selection](photosui/phpickerconfiguration-swift.struct/selection-swift.enum.md)

### Customizing picker appearance and behavior

- [mode](photosui/phpickerconfiguration-swift.struct/mode.md)
- [PHPickerMode](photosui/phpickermode-swift.struct.md)
- [disabledCapabilities](photosui/phpickerconfiguration-swift.struct/disabledcapabilities.md)
- [PHPickerCapabilities](photosui/phpickercapabilities.md)
- [edgesWithoutContentMargins](photosui/phpickerconfiguration-swift.struct/edgeswithoutcontentmargins.md)
- [PHPickerConfiguration.Update](photosui/phpickerconfiguration-swift.struct/update.md)

### Instance Properties

- [metadataOptions](photosui/phpickerconfiguration-swift.struct/metadataoptions.md)
- [searchText](photosui/phpickerconfiguration-swift.struct/searchtext.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 UIKit, AppKit

- [Selecting Photos and Videos in iOS](photokit/selecting-photos-and-videos-in-ios.md)
- [PHPickerViewController](photosui/phpickerviewcontroller.md)
- [PHPickerViewControllerDelegate](photosui/phpickerviewcontrollerdelegate-5yntc.md)
- [PHPickerFilter](photosui/phpickerfilter-swift.struct.md)
- [PHPickerResult](photosui/phpickerresult-swift.struct.md)
