<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHPickerConfiguration-swift.struct/Update/selectionLimit",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "s:8PhotosUI21PHPickerConfigurationV6UpdateV14selectionLimitSiSgvp"
  },
  "title" : "selectionLimit"
}
-->

# selectionLimit

The maximum number of selections the user can make.

```
var selectionLimit: Int?
```

## Discussion

This property updates the photos picker configuration ([`PHPickerConfiguration`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct)) property [`selectionLimit`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct/selectionLimit).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)