<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotosUI",
  "identifier" : "/documentation/PhotosUI/PHPickerSecondaryButtonType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:@E@PHPickerSecondaryButtonType"
  },
  "title" : "PHPickerSecondaryButtonType"
}
-->

# PHPickerSecondaryButtonType

An enum that determines the secondary button type for the picker.

```
enum PHPickerSecondaryButtonType
```

## Topics

### Enumeration Cases

[`case automatic`](/documentation/PhotosUI/PHPickerSecondaryButtonType/automatic)

The system chooses the secondary button based on context.

[`case back`](/documentation/PhotosUI/PHPickerSecondaryButtonType/back)

A “Back” button.

[`case cancel`](/documentation/PhotosUI/PHPickerSecondaryButtonType/cancel)

A “Cancel” button.

[`case clear`](/documentation/PhotosUI/PHPickerSecondaryButtonType/clear)

A “Clear” button that clears the current selection.

[`case close`](/documentation/PhotosUI/PHPickerSecondaryButtonType/close)

A “Close” button.

[`case hidden`](/documentation/PhotosUI/PHPickerSecondaryButtonType/hidden)

No secondary button is shown.

### Initializers

[`init?(rawValue: Int)`](/documentation/PhotosUI/PHPickerSecondaryButtonType/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

[`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)