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

# init(barAppearance:)

Creates a new bar appearance object by copying relevant data from the specified appearance object.

## Declaration

```swift
init(barAppearance: UIBarAppearance)
```

## Parameters

- `barAppearance`: The bar appearance object from which to copy the relevant properties.

## Return Value

Return Value A new bar appearance object containing the relevant properties from the other object.

## Discussion

Discussion This method copies over the properties from barAppearance that are also relevant to the new bar appearance object.

## See Also

### Creating a custom bar appearance object

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