---
title: barTintColor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchbar/bartintcolor
---

# barTintColor

The tint color to apply to the search bar background.

## Declaration

```swift
var barTintColor: UIColor? { get set }
```

## Discussion

Discussion This color is made translucent by default unless you set the isTranslucent property to false.

## See Also

### Configuring the search bar

- [isEnabled](uikit/uisearchbar/isenabled.md)
- [searchBarStyle](uikit/uisearchbar/searchbarstyle.md)
- [UISearchBar.Style](uikit/uisearchbar/style.md)
- [tintColor](uikit/uisearchbar/tintcolor.md)
- [isTranslucent](uikit/uisearchbar/istranslucent.md)
- [barStyle](uikit/uisearchbar/barstyle.md)
- [UIBarStyle](uikit/uibarstyle.md)
