---
title: preselectedAssetIdentifiers
framework: photosui
role: symbol
role_heading: Instance Property
path: photosui/phpickerconfiguration-swift.struct/preselectedassetidentifiers
---

# preselectedAssetIdentifiers

An array of asset identifiers to preselect in the picker.

## Declaration

```swift
var preselectedAssetIdentifiers: [String] { get set }
```

## Discussion

Discussion Preselection works only when initializing a PHPickerConfiguration object with a photo library. Otherwise, the system returns an error. The number of preselected asset identifiers can exceed your selection limit. The system disables the done action until the selection count becomes lower than selectionLimit. Additionally, when providing preselected identifiers: Results include all preselected identifiers when canceling the picker. Results don’t include item providers for preselected assets that remain selected. When deselecting all assets, the system keeps the done action enabled.
