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

# selectionLimit

The maximum number of selections the user can make.

## Declaration

```swift
var selectionLimit: Int?
```

## Discussion

Discussion This property updates the photos picker configuration (PHPickerConfiguration) property selectionLimit.
