Interactive previews iPhone
Menu Section
A Section inside a Menu
Platform Compatibility
iOS 13.0+ iPadOS 13.0+ macOS 10.15+ watchOS 6.0+ tvOS 13.0+ visionOS 1.0+
Tags
SwiftUI Code
Menu {
Button("Button 1", action: action)
Section("foo") {
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 allUIKit Separator Colors
The UIKit separator colors that are also used in other components, such as the TextField
Future DatePicker
Creates an instance that selects multiple dates on or after some start date
WheelDatePickerStyle
A date picker style that displays each component as columns in a scrollable wheel
NavigationLinkPickerStyle
A picker style represented by a navigation link that presents the options by pushing a List-style picker view.