---
title: "init(style:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uibarbuttonitemappearance/init(style:)"
---

# init(style:)

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

## Declaration

```swift
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 doc://com.apple.uikit/documentation/UIKit/UIBarButtonItem/Style-swift.enum.

## Return Value

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

## See Also

### Creating a bar button item appearance object

- [init()](uikit/uibarbuttonitemappearance/init().md)
- [init(coder:)](uikit/uibarbuttonitemappearance/init(coder:).md)
