<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/CompactMenuControlGroupStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI28CompactMenuControlGroupStyleV"
  },
  "title" : "CompactMenuControlGroupStyle"
}
-->

# 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.

```
nonisolated struct CompactMenuControlGroupStyle
```

## Overview

Use [`compactMenu`](/documentation/SwiftUI/ControlGroupStyle/compactMenu) to construct this style.

## Topics

### Creating the control group style

[`init()`](/documentation/SwiftUI/CompactMenuControlGroupStyle/init())

Creates a compact menu control group style.

## Relationships

### Conforms To

[`ControlGroupStyle`](/documentation/SwiftUI/ControlGroupStyle)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)