<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "s:8PhotosUI21PHPickerConfigurationV6UpdateV"
  },
  "title" : "PHPickerConfiguration.Update"
}
-->

# PHPickerConfiguration.Update

An object that defines the aspects of a photo picker’s appearance that can change while it’s presented.

```
struct Update
```

## Overview

While a photos picker is visible, you can use an instance of this structure to change its [`edgesWithoutContentMargins`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct/edgesWithoutContentMargins) or [`selectionLimit`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct/selectionLimit) properties. To do that, create and configure an instance of this object and pass it to the [`PHPickerViewController`](/documentation/PhotosUI/PHPickerViewController) method [`updatePicker(using:)`](/documentation/PhotosUI/PHPickerViewController/updatePicker(using:)).

## Topics

### Creating an update object

[`init()`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct/Update/init())

### Adjusting selection limits

[`var selectionLimit: Int?`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct/Update/selectionLimit)

The maximum number of selections the user can make.

### Adjusting content margins

[`var edgesWithoutContentMargins: NSDirectionalRectEdge?`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct/Update/edgesWithoutContentMargins)

The portions of a photo picker’s permiter that are borderless.

### Instance Properties

[`var searchText: PHPickerSearchText?`](/documentation/PhotosUI/PHPickerConfiguration-swift.struct/Update/searchText)

The search text for the picker. Default is `nil`.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)