iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

Menu

Menu

A control for presenting a menu of actions.

Explore Menu on iPhone in portrait, with SwiftUI code and Apple API documentation.

Menu {
    Button("Button 1", action: action)
    Button("Button 2", systemImage: "button.vertical.left.press", action: action)
    Button(action: action) {
        Text("Button 3")
        Text("Description 3")
    }
} label: {
    Text("Buttons")
}
iOS 14.0+ iPadOS 14.0+ macOS 11.0+ tvOS 17.0+ visionOS 1.0+

Every available iPhone screenshot for Menu.

2 views