---
title: configureWithOpaqueBackground()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uibarappearance/configurewithopaquebackground()
---

# configureWithOpaqueBackground()

Configures the bar appearance object with a set of opaque colors that are appropriate for the current theme.

## Declaration

```swift
func configureWithOpaqueBackground()
```

## Discussion

Discussion Calling this method replaces any previous values you specified for the bar appearance properties.

## See Also

### Resetting the appearance properties

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