<!--
{
  "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/UIBarAppearance/init(barAppearance:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarAppearance(im)initWithBarAppearance:"
  },
  "title" : "init(barAppearance:)"
}
-->

# init(barAppearance:)

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

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

## Parameters

`barAppearance`

The bar appearance object from which to copy the relevant properties.

## Return Value

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

## Discussion

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

---

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)