<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PickerStyle/menu",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11PickerStylePA2A04MenucD0VRszrlE4menuAEvpZ"
  },
  "title" : "menu"
}
-->

# menu

A picker style that presents the options as a menu when the user presses a
button, or as a submenu when nested within a larger menu.

```
@export(implementation) static var menu: MenuPickerStyle { get }
```

## Discussion

Use this style when there are more than five options. Consider using
[`inline`](/documentation/SwiftUI/PickerStyle/inline) 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.

---

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)