---
title: UIBarAppearance
framework: uikit
role: symbol
role_heading: Class
path: uikit/uibarappearance
---

# UIBarAppearance

An object for customizing the basic appearance of system bars.

## Declaration

```swift
@MainActor class UIBarAppearance
```

## Overview

Overview A UIBarAppearance object contains the common traits shared by navigation bars, tab bars, and toolbars. When configuring a specific type of bar, you usually instantiate the appropriate bar appearance subclass. However, you may also create a UIBarAppearance object, configure its properties, and use it to create new bar appearance objects in your app.

## Topics

### Creating a custom bar appearance object

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

### Copying a custom bar appearance object

- [copy()](uikit/uibarappearance/copy().md)

### Resetting the appearance properties

- [configureWithDefaultBackground()](uikit/uibarappearance/configurewithdefaultbackground().md)
- [configureWithOpaqueBackground()](uikit/uibarappearance/configurewithopaquebackground().md)
- [configureWithTransparentBackground()](uikit/uibarappearance/configurewithtransparentbackground().md)

### Configuring the background appearance

- [backgroundEffect](uikit/uibarappearance/backgroundeffect.md)
- [backgroundColor](uikit/uibarappearance/backgroundcolor.md)
- [backgroundImage](uikit/uibarappearance/backgroundimage.md)
- [backgroundImageContentMode](uikit/uibarappearance/backgroundimagecontentmode.md)

### Configuring the shadow appearance

- [shadowColor](uikit/uibarappearance/shadowcolor.md)
- [shadowImage](uikit/uibarappearance/shadowimage.md)

### Getting the supported idiom

- [idiom](uikit/uibarappearance/idiom.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [UINavigationBarAppearance](uikit/uinavigationbarappearance.md)
- [UITabBarAppearance](uikit/uitabbarappearance.md)
- [UIToolbarAppearance](uikit/uitoolbarappearance.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)

## See Also

### Shared appearance

- [UIBarButtonItemAppearance](uikit/uibarbuttonitemappearance.md)
- [UIBarButtonItemStateAppearance](uikit/uibarbuttonitemstateappearance.md)
