<!--
{
  "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/configureWithDefault(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarButtonItemAppearance(im)configureWithDefaultForStyle:"
  },
  "title" : "configureWithDefault(for:)"
}
-->

# configureWithDefault(for:)

Configures the bar button item appearance object with appropriate values for the specified button style.

```
func configureWithDefault(for style: UIBarButtonItem.Style)
```

## Parameters

`style`

The button style. For a list of possible values, see [`UIBarButtonItem.Style`](/documentation/UIKit/UIBarButtonItem/Style-swift.enum).

---

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)