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

# selectionLimit

The maximum number of selections the user can make.

## Declaration

```swift
var selectionLimit: Int
```

## Discussion

Discussion The default value is 1. Setting the value to 0 sets the selection limit to the maximum that the system supports.

## See Also

### Setting the selection limit

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