<!--
{
  "availability" : [
    "macOS: 10.15.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PopUpButtonPickerStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22PopUpButtonPickerStyleV"
  },
  "title" : "PopUpButtonPickerStyle"
}
-->

# PopUpButtonPickerStyle

A picker style that presents the options as a menu when the user presses a
button.

```
struct PopUpButtonPickerStyle
```

## Overview

Use this style when there are more than five options. Consider using
[`RadioGroupPickerStyle`](/documentation/SwiftUI/RadioGroupPickerStyle) when there are fewer than five options.

The button itself indicates the selected option. You can include additional
controls in the set of options, such as a button to customize the list of
options.

To apply this style to a picker, or to a view that contains pickers, use the
[`pickerStyle(_:)`](/documentation/SwiftUI/View/pickerStyle(_:)) modifier.

### Creating the picker style

- [`init()`](/documentation/SwiftUI/PopUpButtonPickerStyle/init())

---

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)