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

# selection

The selection behavior for the picker.

## Declaration

```swift
var selection: PHPickerConfiguration.Selection
```

## See Also

### Setting the selection limit

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