PaletteControlGroupStyle

A control group style that presents its content as a palette.

PaletteControlGroupStyle - iOS Light Mode Preview

Platform Compatibility

iOS 17.0+ iPadOS 17.0+ macOS 14.0+ visionOS 1.0+

Tags

SwiftUI Code

Docs
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(.palette)

Found an issue or have a suggestion?

Created: June 4, 2025Updated: June 4, 2025