<!--
{
  "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/PHPickerPrimaryButtonType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:@E@PHPickerPrimaryButtonType"
  },
  "title" : "PHPickerPrimaryButtonType"
}
-->

# PHPickerPrimaryButtonType

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

```
enum PHPickerPrimaryButtonType
```

## Topics

### Enumeration Cases

[`case add`](/documentation/PhotosUI/PHPickerPrimaryButtonType/add)

An “Add” button.

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

The system chooses the primary button based on context.

[`case choose`](/documentation/PhotosUI/PHPickerPrimaryButtonType/choose)

A “Choose” button.

[`case `continue``](/documentation/PhotosUI/PHPickerPrimaryButtonType/continue)

A “Continue” button.

[`case done`](/documentation/PhotosUI/PHPickerPrimaryButtonType/done)

A “Done” button.

[`case edit`](/documentation/PhotosUI/PHPickerPrimaryButtonType/edit)

An “Edit” button.

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

No primary button is shown.

[`case next`](/documentation/PhotosUI/PHPickerPrimaryButtonType/next)

A “Next” button.

[`case save`](/documentation/PhotosUI/PHPickerPrimaryButtonType/save)

A “Save” button.

### Initializers

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)