---
title: "init(idiom:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uibarappearance/init(idiom:)"
---

# init(idiom:)

Creates a new bar appearance object that targets the specified idiom.

## Declaration

```swift
init(idiom: UIUserInterfaceIdiom)
```

## Parameters

- `idiom`: The device idiom to target. If you specify an idiom that doesn’t make sense for the current device, this method adjusts the idiom to an appropriate value.

## Return Value

Return Value A new bar appearance object containing default values for the specified idiom.

## See Also

### Creating a custom bar appearance object

- [init(barAppearance:)](uikit/uibarappearance/init(barappearance:).md)
- [init()](uikit/uibarappearance/init().md)
- [init(coder:)](uikit/uibarappearance/init(coder:).md)
