<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/AccessoryBarButtonStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI23AccessoryBarButtonStyleV"
  },
  "title" : "AccessoryBarButtonStyle"
}
-->

# AccessoryBarButtonStyle

A button style that you use for actions in an accessory toolbar that
narrow the focus of a search or other operation.

```
nonisolated struct AccessoryBarButtonStyle
```

## Overview

This is the default button style for views in accessory toolbars,
which you create with [`init(id:)`](/documentation/SwiftUI/ToolbarItemPlacement/init(id:)),
and for searchable scopes.
This style also affects other view types that you apply a button style
to, like [`Toggle`](/documentation/SwiftUI/Toggle), [`Picker`](/documentation/SwiftUI/Picker), and [`Menu`](/documentation/SwiftUI/Menu) instances.

Use [`accessoryBar`](/documentation/SwiftUI/PrimitiveButtonStyle/accessoryBar) to construct this style.

## Topics

### Creating the button style

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

Creates an accessory toolbar style

### Supporting types

[`makeBody(configuration:)`](/documentation/SwiftUI/AccessoryBarButtonStyle/makeBody(configuration:))

Creates a view that represents the body of a button.

## Relationships

### Conforms To

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

---

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)