<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/MenuStyleConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22MenuStyleConfigurationV"
  },
  "title" : "MenuStyleConfiguration"
}
-->

# MenuStyleConfiguration

A configuration of a menu.

```
struct MenuStyleConfiguration
```

## Overview

Use the [`init(_:)`](/documentation/SwiftUI/Menu/init(_:)) initializer of [`Menu`](/documentation/SwiftUI/Menu) to create an
instance using the current menu style, which you can modify to create a
custom style.

For example, the following code creates a new, custom style that adds a red
border to the current menu style:

```
struct RedBorderMenuStyle: MenuStyle {
    func makeBody(configuration: Configuration) -> some View {
        Menu(configuration)
            .border(Color.red)
    }
}
```

## Topics

### Setting the label and content

[`struct Label`](/documentation/SwiftUI/MenuStyleConfiguration/Label)

A type-erased label of a menu.

[`struct Content`](/documentation/SwiftUI/MenuStyleConfiguration/Content)

A type-erased content of a menu.



---

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)