<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarButtonItemAppearance/init(style:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarButtonItemAppearance(im)initWithStyle:"
  },
  "title" : "init(style:)"
}
-->

# init(style:)

Creates an appearance with default values that are appropriate for the specified button style.

```
init(style: UIBarButtonItem.Style)
```

## Parameters

`style`

The button style. UIKit uses this value to configure the default appearance attributes. For a list of possible values, see [`UIBarButtonItem.Style`](/documentation/UIKit/UIBarButtonItem/Style-swift.enum).

## Return Value

A new bar button item appearance object containing the default appearances for the specified button style.

---

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)