Interactive previews iPhone
Nested Menu
A Menu inside a Menu
Platform Compatibility
iOS 14.0+ iPadOS 14.0+ macOS 11+ tvOS 17.0+ visionOS 1.0+
Tags
SwiftUI Code
Menu {
Button("Button 1", action: action)
Menu("Other") {
Button("Button 2", systemImage: "button.vertical.left.press", action: action)
Button(action: action) {
Text("Button 3")
Text("Description 3")
}
}
} label: {
Text("Buttons")
}Found an issue or have a suggestion?
Created: May 30, 2025Updated: December 27, 2025
More Menu Components
View allExplore Other Components
Browse allButton Styles
A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy
Prefer Vertical Toolbar Items
A compression behavior that prioritizes keeping toolbar items visible over other elements, such as tabs. By default, tabs are prioritized.
Stepped Min Max Label Slider
Creates a slider to select a value from a given range, subject to a step increment, which displays the provided labels
NavigationLinkPickerStyle
A picker style represented by a navigation link that presents the options by pushing a List-style picker view.