---
title: "configureWithDefault(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uibarbuttonitemappearance/configurewithdefault(for:)"
---

# configureWithDefault(for:)

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

## Declaration

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

## Parameters

- `style`: The button style. For a list of possible values, see doc://com.apple.uikit/documentation/UIKit/UIBarButtonItem/Style-swift.enum.
