---
title: tokenBackgroundColor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchtextfield/tokenbackgroundcolor
---

# tokenBackgroundColor

The background color for all tokens in the search text field.

## Declaration

```swift
var tokenBackgroundColor: UIColor! { get set }
```

## Discussion

Discussion If you set this property to nil, the search field reverts to the default token background color.

## See Also

### Customizing token behavior

- [tokens(in:)](uikit/uisearchtextfield/tokens(in:).md)
- [positionOfToken(at:)](uikit/uisearchtextfield/positionoftoken(at:).md)
