Interactive previews iPhone
CompactMenuControlGroupStyle
A control group style that presents its content as a compact menu when the user presses the control, or as a submenu when nested within a larger menu
Platform Compatibility
iOS 16.4+ iPadOS 16.4+ macOS 13.3+ visionOS 1.0+
Tags
SwiftUI Code
VStack {
ControlGroup {
Button("Increase", systemImage: "plus", action: action)
Button("Decrease", systemImage: "minus", action: action)
} label: {
Text("Foo")
}
ControlGroup("Foo", systemImage: "magnifyingglass") {
Button("Increase", systemImage: "plus", action: action)
Button("Decrease", systemImage: "minus", action: action)
}
ControlGroup {
Button("Increase", systemImage: "plus", action: action)
Button("Decrease", systemImage: "minus", action: action)
}
}
.controlGroupStyle(.compactMenu)Found an issue or have a suggestion?
Created: June 4, 2025Updated: December 27, 2025
More ControlGroup Components
View allMenuControlGroupStyle
A control group style that presents its content as a menu when the user presses the control, or as a submenu when nested within a larger menu
Explore Other Components
Browse allCustom Value Label Picker
Creates a picker that generates its label from a localized string key and accepts a custom current value label.
Disclosure Group
A view that shows or hides another content view, based on the state of a disclosure control.
SliderTickContentForEach
A type of slider content that creates content by iterating over a collection.
Multiple Sources Picker
Creates a picker that updates the selected property for all sources.